Updates Traefik to v2.2 and enables global entry point redirection http to https

See also PR: https://github.com/containous/traefik/pull/6417
This commit is contained in:
Jan Beilicke 2020-04-02 19:18:33 +02:00
parent 5d3ca738c0
commit fa2bc834ef
2 changed files with 6 additions and 1 deletions

View file

@ -8,7 +8,7 @@ networks:
services:
# Load Balancer / SSL / Web Server
revproxy:
image: traefik:v2.1
image: traefik:v2.2
restart: always
networks:
- public

View file

@ -6,6 +6,11 @@ defaultEntryPoints = ["web", "websecure"]
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http]
[entryPoints.web.http.redirections]
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"