media-server-docker-compose/nginx-proxy/docker-compose.yml

30 lines
804 B
YAML
Raw Permalink Normal View History

2024-04-27 11:11:13 -04:00
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
2024-07-18 11:24:17 -04:00
- "81:81"
2024-04-27 11:11:13 -04:00
- "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
2024-11-12 14:54:16 -05:00
- ./settings.conf:/etc/nginx/conf.d/settings.conf:ro
# - ./keepalive_requests.conf:/etc/nginx/conf.d/keepalive_requests.conf:ro
2024-04-27 11:11:13 -04:00
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:
2024-04-27 11:21:03 -04:00
- DEFAULT_EMAIL=${EMAIL}
2024-06-05 16:59:33 -04:00
- TZ=${TZ}
2024-04-27 11:21:03 -04:00
networks:
default:
name: nginx-proxy
external: true