Added traefik router to allow static deployments from this compose.

This commit is contained in:
KARMACOMA 2025-11-24 00:02:48 +00:00
parent ebfffde2a0
commit 160ec83dfc

View file

@ -38,8 +38,31 @@ services:
networks: networks:
- array - array
labels: labels:
- "traefik.http.routers.https-0-gluetun.middlewares=gzip,authentik" labels:
- "traefik.enable=true"
# 1. Create a STATIC router name (e.g., 'qbittorrent-secure')
# This replaces the dynamic 'https-0-uuid' name.
- "traefik.http.routers.qbittorrent-secure.rule=Host(`qbittorrent.karmacoma.dev`)"
# 2. Force High Priority
# This ensures Traefik uses THIS router (with Auth) instead of
# any conflicting router Coolify might auto-generate.
- "traefik.http.routers.qbittorrent-secure.priority=100"
# 3. Standard Boilerplate (Required because we are making a manual router)
- "traefik.http.routers.qbittorrent-secure.entrypoints=websecure"
- "traefik.http.routers.qbittorrent-secure.tls=true"
- "traefik.http.routers.qbittorrent-secure.tls.certresolver=letsencrypt"
# 4. Attach the Middleware
# Now we can reference it because we know our own router's name!
# (Note: We use 'authentik@docker' to ensure we look for the middleware globally)
- "traefik.http.routers.qbittorrent-secure.middlewares=gzip,authentik@docker"
# 5. Service Mapping
# Tell the router to send traffic to the service port (8080 for qbit/gluetun)
- "traefik.http.services.qbittorrent-secure.loadbalancer.server.port=8080"
networks: networks:
array: array:
external: true external: true