From 8e97ecd9c4b671ba749d410b8708ca9570549762 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Mon, 6 Nov 2023 14:12:45 +1100 Subject: [PATCH] Update nginx-proxy-compose.yml --- .deploy/nginx-proxy-compose.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.deploy/nginx-proxy-compose.yml b/.deploy/nginx-proxy-compose.yml index eccae8d..144298d 100644 --- a/.deploy/nginx-proxy-compose.yml +++ b/.deploy/nginx-proxy-compose.yml @@ -1,8 +1,8 @@ -version: '2' +version: "3.9" services: nginx-proxy: - image: jwilder/nginx-proxy + image: nginxproxy/nginx-proxy container_name: nginx-proxy restart: always ports: @@ -15,21 +15,27 @@ services: - dhparam:/etc/nginx/dhparam - certs:/etc/nginx/certs:ro - /var/run/docker.sock:/tmp/docker.sock:ro - network_mode: bridge + labels: + - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy" letsencrypt: - image: jrcs/letsencrypt-nginx-proxy-companion:2.0 + image: nginxproxy/acme-companion:2.2 container_name: nginx-proxy-le restart: always + depends_on: + - "nginx-proxy" environment: - DEFAULT_EMAIL=you@example.com - volumes_from: - - nginx-proxy volumes: - certs:/etc/nginx/certs:rw - acme:/etc/acme.sh + - vhost:/etc/nginx/vhost.d + - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro - network_mode: bridge + +networks: + default: + name: nginx volumes: conf: