diff --git a/docker-compose-traefik.yml b/docker-compose-traefik.yml index 7366330..093f862 100644 --- a/docker-compose-traefik.yml +++ b/docker-compose-traefik.yml @@ -12,6 +12,9 @@ services: - --providers.docker.network=mynetwork - --entrypoints.web.address=:80 - --entrypoints.websecure.address=:443 + - --entrypoints.web.http.redirections.entryPoint.to=websecure + - --entrypoints.web.http.redirections.entryPoint.scheme=https + - --entrypoints.web.http.redirections.entryPoint.permanent=true - --certificatesresolvers.le.acme.email=${LE_EMAIL} - --certificatesresolvers.le.acme.storage=/letsencrypt/acme.json - --certificatesresolvers.le.acme.httpChallenge.entrypoint=web