From 3f3ad792e55a26109fd52650f37d9b2d557bebe6 Mon Sep 17 00:00:00 2001 From: Emmanuel Isenah Date: Sat, 16 Mar 2024 17:40:15 +0100 Subject: [PATCH] fix: add missing volumes from nginx-proxy --- docker-compose.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index ff81ee5..e0d76b5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 @@ -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