Compare commits
2 commits
7a18aab192
...
be737857bf
Author | SHA1 | Date | |
---|---|---|---|
be737857bf | |||
2d367d26fa |
2 changed files with 1 additions and 6 deletions
|
@ -3,7 +3,7 @@ version: "3.3"
|
|||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v2.3
|
||||
image: traefik:v2.4
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- "--api.insecure=false"
|
||||
|
|
|
@ -11,13 +11,8 @@ services:
|
|||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.web.entrypoints=http"
|
||||
- "traefik.http.routers.web.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)"
|
||||
- "traefik.http.middlewares.web-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.web.middlewares=web-https-redirect"
|
||||
- "traefik.http.routers.web-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.web-secure.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)"
|
||||
- "traefik.http.routers.web-secure.tls=true"
|
||||
- "traefik.http.routers.web-secure.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.web-secure.tls.options=intermediate@file"
|
||||
- "traefik.docker.network=web"
|
||||
|
|
Loading…
Reference in a new issue