Update for ssl

This commit is contained in:
Kekskurse 2021-10-20 13:57:59 +02:00
parent 180bb13505
commit ea65ea64f0
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -8,14 +8,23 @@ services:
# The official v2 Traefik docker image
image: traefik:v2.5
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
command:
- "--api.insecure=true"
- " --providers.docker"
- "--certificatesResolvers.le.acme.email=ssl@kekskurse.de"
- "--certificatesResolvers.le.acme.storage=/letsencrypt/acme.json"
- "--certificatesResolvers.le.acme.tlsChallenge=false"
- "--certificatesResolvers.le.acme.httpChallenge=true"
- "--certificatesResolvers.le.acme.httpChallenge.entryPoint=web"
networks:
- web
ports:
# The HTTP port
- "80:80"
- 443:443
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./letsencrypt:/letsencrypt