Skip to content

Commit

Permalink
Fix the bad bind mount for provider key file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
abmruman committed Mar 22, 2020
1 parent 663bec9 commit 27c801d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 27c801d

Please sign in to comment.