29 lines
747 B
YAML
29 lines
747 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
|
|
- ./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:
|
|
- DEFAULT_EMAIL=${EMAIL}
|
|
- TZ=${TZ}
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|