2020-11-28 22:51:37 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
2024-03-05 08:04:22 +01:00
|
|
|
image: nginx:stable
|
2020-11-28 22:51:37 +01:00
|
|
|
volumes:
|
|
|
|
- ${HTML}:/usr/share/nginx/html:ro
|
2024-04-05 08:29:51 +02:00
|
|
|
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
restart: unless-stopped
|
2023-06-09 08:58:54 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl" ,"--fail", "localhost"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 3s
|
2020-11-28 22:51:37 +01:00
|
|
|
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"
|
2024-06-26 12:34:44 +02:00
|
|
|
- "diun.enable=true"
|
2021-03-18 16:15:52 +01:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
2023-01-12 10:10:34 +01:00
|
|
|
|