Move nginx-proxy data volumes into one folder

main
Marco von Rosenberg 2 years ago
parent f1c199ca10
commit e4c4410ba3
  1. 12
      docker-containers/nginx-proxy/docker-compose.yml

@ -7,10 +7,10 @@ services:
- 80:80 - 80:80
- 443:443 - 443:443
volumes: volumes:
- ./conf:/etc/nginx/conf.d - ./nginx-data/conf:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs - ./nginx-data/certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d - ./nginx-data/vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html - ./nginx-data/html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
- ${PWD}/secure-turn-module:/etc/nginx/modules/secure-turn-module - ${PWD}/secure-turn-module:/etc/nginx/modules/secure-turn-module
networks: networks:
@ -21,8 +21,8 @@ services:
volumes_from: volumes_from:
- nginx-proxy - nginx-proxy
volumes: volumes:
- ./certs:/etc/nginx/certs:rw - ./nginx-data/certs:/etc/nginx/certs:rw
- ./acme:/etc/acme.sh - ./nginx-data/acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
- DEFAULT_EMAIL=codingmarco@gmail.com - DEFAULT_EMAIL=codingmarco@gmail.com

Loading…
Cancel
Save