acme.json is now persisted

This commit is contained in:
Jean Froment 2020-09-11 13:29:19 +02:00
parent a164ab76b7
commit b127f179c6
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./traefik:/etc/traefik - ./traefik:/etc/traefik
- configtraefik:/config
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# HTTP to HTTPS redirection # HTTP to HTTPS redirection
@ -293,6 +294,10 @@ volumes:
driver: local-persist driver: local-persist
driver_opts: driver_opts:
mountpoint: /data/config mountpoint: /data/config
configtraefik:
driver: local-persist
driver_opts:
mountpoint: /data/config/traefik
configplex: configplex:
driver: local-persist driver: local-persist
driver_opts: driver_opts:

View File

@ -18,7 +18,7 @@ entryPoints:
certificatesResolvers: certificatesResolvers:
le: le:
acme: acme:
storage: acme.json storage: /config/acme.json
httpChallenge: httpChallenge:
# used during the challenge # used during the challenge
entryPoint: insecure entryPoint: insecure