treafik -> caddy
This commit is contained in:
parent
c6bf4e3fa0
commit
5f3ad34250
11 changed files with 121 additions and 187 deletions
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
|
||||
app:
|
||||
webserver-www:
|
||||
image: nginx:stable
|
||||
volumes:
|
||||
- ${HTML}:/usr/share/nginx/html:ro
|
||||
|
@ -13,19 +13,6 @@ services:
|
|||
interval: 5s
|
||||
timeout: 3s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.webroot.entrypoints=websecure" # All HTTP requests are globally redirected to HTTPS
|
||||
- "traefik.http.routers.webroot.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.webroot.tls.certresolver=netcup"
|
||||
- "traefik.http.routers.webroot.tls.options=intermediate@file"
|
||||
- "traefik.http.routers.webroot.middlewares=redirect-to-www"
|
||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.regex=^https?://${DOMAIN}/(.*)"
|
||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.replacement=https://${FQDN_WWW}/$${1}"
|
||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.permanent=true"
|
||||
- "traefik.http.routers.www-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.www-secure.rule=Host(`${FQDN_WWW}`)"
|
||||
- "traefik.http.routers.www-secure.tls.certresolver=netcup"
|
||||
- "traefik.http.routers.www-secure.tls.options=intermediate@file"
|
||||
- "docker.group=www"
|
||||
|
||||
networks:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue