enable https

This commit is contained in:
Pim Kunis 2023-05-02 14:41:14 +02:00
parent 0ae631bfde
commit 2db2f5172f

View file

@ -11,6 +11,7 @@ services:
networks:
- traefik
ports:
- 443:443
- 80:80
- 8080:8080
deploy:
@ -33,4 +34,13 @@ services:
- --api.insecure=true
- --api.dashboard=true
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint=true
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true
- --entrypoints.websecure.address=:443
- --providers.docker.exposedbydefault=false
- --certificatesresolvers.letsencrypt.acme=true
- --certificatesresolvers.letsencrypt.acme.email=pim@kunis.nl
- --certificatesresolvers.letsencrypt.acme.httpchallenge=true
- --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web