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

28 lines
731 B
YAML
Raw Normal View History

2024-04-27 11:11:13 -04:00
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "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
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.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:
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