Skip to content

Commit 27c801d

Browse files
committed
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.
1 parent 663bec9 commit 27c801d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
- --certificatesResolvers.le.acme.dnsChallenge.provider=${PROVIDER}
2424
- --certificatesResolvers.le.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53
2525
environment:
26-
- ${PROVIDER_ENV_FILE}=${PROVIDER_ENV_FILE_VALUE}
26+
- ${PROVIDER_ENV_FILE}=/provider.key
2727
ports:
2828
- "80:80"
2929
- "443:443"
@@ -33,7 +33,7 @@ services:
3333
- "${CERT_PATH}:/certs"
3434
- "${ACME_PATH}:/acme.json"
3535
- "${CONFIG_PATH}:/etc/traefik"
36-
- "${PROVIDER_ENV_FILE_VALUE}:/${PROVIDER_ENV_FILE_VALUE}:ro"
36+
- "${PROVIDER_ENV_FILE_VALUE}:/provider.key:ro"
3737
- "/var/run/docker.sock:/var/run/docker.sock:ro"
3838
labels:
3939
# set this lebel to `false` and the rest is history

0 commit comments

Comments
 (0)