56kcloud / traefik-training

Traefik Training course resources
https://www.thebyte.io/traefik-training
MIT License
310 stars 161 forks source link

04-HTTPS-TLS - Let's Encrypt HTTP Challenge Lab #3

Open sw360cab opened 3 years ago

sw360cab commented 3 years ago

in the traefik.http.yml file in order to get letsencrypt folder mapped correctly to local filesystem from docker compose, the certresolver section should be changed this way:

certificatesResolvers:
  myresolver:
    acme:
      email: your_email@example.com 
       storage: /letsencrypt/acme.json
      httpChallenge:
        entryPoint: web

storage key with value acme.json alone, would not map correctly the file.

Ref. https://doc.traefik.io/traefik/user-guides/docker-compose/acme-http/#setup