From 6058545dd45cad74f5f9f52e774f136a75d91364 Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 6 Jan 2025 13:32:20 +0100 Subject: [PATCH] chore: switch to new reverse proxy images (#35) Reviewed-on: https://git.poldebra.me/polpetta/server-dotfiles/pulls/35 Co-authored-by: Davide Polonio Co-committed-by: Davide Polonio --- reverse_proxy/docker-compose.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/reverse_proxy/docker-compose.yaml b/reverse_proxy/docker-compose.yaml index 3181c5a..4ce8b50 100644 --- a/reverse_proxy/docker-compose.yaml +++ b/reverse_proxy/docker-compose.yaml @@ -1,9 +1,9 @@ --- -version: '3.7' services: nginx: - image: jwilder/nginx-proxy:alpine - restart: always + image: nginxproxy/nginx-proxy:latest + container_name: nginx-proxy + restart: unless-stopped ports: - 80:80 - 443:443 @@ -14,7 +14,7 @@ services: - nginx_html:/usr/share/nginx/html - ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro labels: - - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy" + - "com.github.nginx-proxy.nginx" networks: - proxy logging: @@ -24,13 +24,15 @@ services: max-file: "3" nginx-letsencript: - image: jrcs/letsencrypt-nginx-proxy-companion:latest - restart: always + image: nginxproxy/acme-companion:latest + container_name: nginx-proxy-acme + restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - nginx_cert:/etc/nginx/certs - nginx_vhost:/etc/nginx/vhost.d - nginx_html:/usr/share/nginx/html + - nginx_acme:/etc/acme.sh networks: - proxy @@ -43,6 +45,7 @@ volumes: device: "/srv/docker/reverse_proxy/certs" nginx_vhost: nginx_html: + nginx_acme: networks: proxy: