fixed volumes config for compose v3

This commit is contained in:
_den 2021-12-12 17:53:59 +10:00 committed by Danil Kovtonyuk
parent 6b791d7ec9
commit f38bd71666

View File

@ -31,7 +31,7 @@ services:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
- certs:/etc/nginx/certs:ro
logging:
driver: none
@ -40,9 +40,11 @@ services:
container_name: dockergen
restart: always
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
volumes_from:
- nginx
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
letsencrypt:
@ -51,9 +53,12 @@ services:
restart: always
environment:
NGINX_DOCKER_GEN_CONTAINER: dockergen
volumes_from:
- nginx
- dockergen
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
conf: