From f9bdd336ce379f470c7685c5a9f89f4464dbcf0a Mon Sep 17 00:00:00 2001 From: expoli <31023767+expoli@users.noreply.github.com> Date: Mon, 4 Jan 2021 15:02:15 +0800 Subject: [PATCH] Update docker-compose.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容最新证书申请脚本 --- docker-compose.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5208357..118c200 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -35,11 +35,13 @@ services: proxy: build: ./proxy restart: always + container_name: bolo_nginx_proxy ports: - 80:80 - 443:443 labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" + com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen: "true" volumes: - certs:/etc/nginx/certs:ro - vhost.d:/etc/nginx/vhost.d @@ -59,7 +61,8 @@ services: - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro dns: 8.8.8.8 - # environment: + environment: + - NGINX_DOCKER_GEN_CONTAINER=bolo_nginx_proxy # nginx 容器名称 # - DEFAULT_EMAIL= networks: - proxy-tier @@ -92,4 +95,4 @@ volumes: html: networks: - proxy-tier: \ No newline at end of file + proxy-tier: