Skip to content

Commit

Permalink
fix: add missing volumes from nginx-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Armadillidiid committed Mar 16, 2024
1 parent 990f453 commit 3f3ad79
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ services:
- nginx-proxy-gen
- nginx-proxy-acme

nginx-proxy-gen:
image: nginxproxy/docker-gen
container_name: nginx-proxy-gen
volumes:
- ./nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
command: -notify-sighup nginx-proxy -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
restart: always

nginx-proxy:
image: nginx
container_name: nginx-proxy
Expand All @@ -76,17 +89,8 @@ services:
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs

nginx-proxy-gen:
image: nginxproxy/docker-gen
container_name: nginx-proxy-gen
volumes:
- ./nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
command: -notify-sighup nginx-proxy -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
depends_on:
- nginx-proxy
restart: always
- nginx-proxy-gen

nginx-proxy-acme:
image: nginxproxy/acme-companion
Expand Down

0 comments on commit 3f3ad79

Please sign in to comment.