diff --git a/container-compose.prod.yml b/container-compose.prod.yml index 1347ce2..a3980c9 100644 --- a/container-compose.prod.yml +++ b/container-compose.prod.yml @@ -24,4 +24,4 @@ services: volumes: - ./traefik.toml:/traefik.toml:ro - traefik_config:/traefik.conf.d:ro - - certs:/certs + - certs:/etc/traefik/acme diff --git a/container-compose.yml b/container-compose.yml index 3f1151d..59bbcfd 100644 --- a/container-compose.yml +++ b/container-compose.yml @@ -10,7 +10,7 @@ services: image: docker.io/traefik:latest command: - "--configFile=/traefik.toml" - - "--acme.email=${ACME_MAIL:-info@example.com}" + - "--certificatesresolvers.myresolver.acme.email=${ACME_MAIL:-info@example.com}" environment: - TRAEFIK_API_INSECURE=true networks: diff --git a/traefik.toml b/traefik.toml index 4f43ebb..c07e415 100644 --- a/traefik.toml +++ b/traefik.toml @@ -16,11 +16,11 @@ [api] dashboard = true -[acme] + +[certificatesResolvers.myresolver.acme] storage = "acme.json" - entryPoint = "https" - onHostRule = true - [acme.httpChallenge] + [certificatesResolvers.myresolver.acme.httpChallenge] + # used during the challenge entryPoint = "http" [providers]