25 lines
719 B
YAML
25 lines
719 B
YAML
services:
|
|
proxy:
|
|
image: nginx:1.29-alpine
|
|
container_name: mnmsoft_proxy
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./nginx/.htpasswd:/etc/nginx/.htpasswd:ro
|
|
- ./generated/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./generated/index.html:/usr/share/nginx/html/index.html:ro
|
|
- ./nginx/html:/var/www/certbot:rw
|
|
- ./letsencrypt:/etc/letsencrypt:ro
|
|
certbot:
|
|
image: certbot/certbot:latest
|
|
profiles:
|
|
- certbot
|
|
volumes:
|
|
- ./nginx/html:/var/www/certbot:rw
|
|
- ./letsencrypt:/etc/letsencrypt:rw
|