fix: hardcode Traefik port labels (Gotcha 6 - vars not expanded in labels)

Coolify does not expand ${VAR} in label values. All loadbalancer port
labels must use hardcoded values:
- trilium:   ${TRILIUM_HTTP_PORT}  → 8080
- adguard:   ${ADGUARD_HTTP_PORT}  → 80
- authentik: ${AUTHENTIK_HTTP_PORT} → 9000
- gitea:     ${GITEA_HTTP_PORT}    → 3000
- wireguard: ${WG_UI_PORT}         → 51821

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
root
2026-03-23 02:44:58 +00:00
parent ca4fd7be30
commit fd332455c1
9 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ services:
- ths-authentik-redis
expose:
- "${AUTHENTIK_HTTP_PORT}"
- "9000"
networks:
- ths_authentik_internal
@@ -56,7 +56,7 @@ services:
labels:
# Service Authentik (panel + endpoints)
traefik.http.services.ths-authentik.loadbalancer.server.port: "${AUTHENTIK_HTTP_PORT}"
traefik.http.services.ths-authentik.loadbalancer.server.port: "9000"
# Middleware forwardAuth (para proteger otros servicios) -> usar ths-authentik@docker en tus stacks THS
traefik.http.middlewares.ths-authentik.forwardauth.address: "http://ths-authentik-server:${AUTHENTIK_HTTP_PORT}/outpost.goauthentik.io/auth/traefik"

View File

@@ -19,7 +19,7 @@ AUTHENTIK_SECRET_KEY=
AUTHENTIK_BOOTSTRAP_EMAIL=
AUTHENTIK_BOOTSTRAP_PASSWORD=
AUTHENTIK_BOOTSTRAP_TOKEN=
AUTHENTIK_HTTP_PORT=
AUTHENTIK_HTTP_PORT=9000
##### Traefik / dominios #####
TRAEFIK_DOCKER_NETWORK=