2020-11-28 22:51:37 +01:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: nginx
|
|
|
|
volumes:
|
|
|
|
- ${HTML}:/usr/share/nginx/html:ro
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2022-02-18 14:54:40 +01:00
|
|
|
- "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?://florianzirker.de/(.*)"
|
|
|
|
- "traefik.http.middlewares.redirect-to-www.redirectregex.replacement=https://www.florianzirker.de/$${1}"
|
|
|
|
- "traefik.http.middlewares.redirect-to-www.redirectregex.permanent=true"
|
|
|
|
- "traefik.http.routers.www-secure.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.www-secure.rule=Host(`www.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.www-secure.tls.certresolver=netcup"
|
|
|
|
- "traefik.http.routers.www-secure.tls.options=intermediate@file"
|
2021-03-28 13:50:02 +02:00
|
|
|
- "docker.group=www"
|
2021-03-18 16:15:52 +01:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|