media-server-docker-compose/nginx-proxy/docker-compose.yml
2024-11-12 14:54:16 -05:00

30 lines
804 B
YAML

services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs
- ./nginx/html:/usr/share/nginx/html
- ./nginx/vhost.d:/etc/nginx/vhost.d
- ./settings.conf:/etc/nginx/conf.d/settings.conf:ro
# - ./keepalive_requests.conf:/etc/nginx/conf.d/keepalive_requests.conf:ro
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: always
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DEFAULT_EMAIL=${EMAIL}
- TZ=${TZ}
networks:
default:
name: nginx-proxy
external: true