From 27c801dea2d5f75ded736576a07c1cd22a64f361 Mon Sep 17 00:00:00 2001 From: ABM Ruman Date: Fri, 20 Mar 2020 09:34:04 +0600 Subject: [PATCH] Fix the bad bind mount for provider key file This has beed working somehow, shouldn't have worked in the first place. The bug is basically the slash (`/`) before ${PROVIDER_ENV_FILE_VALUE}, which will set an invalid path for the file in the traefik docker container. --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0c1bfa3..7424af5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: - --certificatesResolvers.le.acme.dnsChallenge.provider=${PROVIDER} - --certificatesResolvers.le.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53 environment: - - ${PROVIDER_ENV_FILE}=${PROVIDER_ENV_FILE_VALUE} + - ${PROVIDER_ENV_FILE}=/provider.key ports: - "80:80" - "443:443" @@ -33,7 +33,7 @@ services: - "${CERT_PATH}:/certs" - "${ACME_PATH}:/acme.json" - "${CONFIG_PATH}:/etc/traefik" - - "${PROVIDER_ENV_FILE_VALUE}:/${PROVIDER_ENV_FILE_VALUE}:ro" + - "${PROVIDER_ENV_FILE_VALUE}:/provider.key:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro" labels: # set this lebel to `false` and the rest is history