traefik/docker-compose-global.yml aktualisiert

This commit is contained in:
2026-01-02 21:08:13 +00:00
parent f8458f652a
commit dc5c90e35d

View File

@@ -23,13 +23,12 @@ services:
- "--api.dashboard=true"
- "--api.insecure=false"
# Logging (v3.x)
# Logging
- "--log.level=${TRAEFIK_LOGLEVEL:-INFO}"
ports:
- "${TRAEFIK_HTTP_PORT:-80}:80"
- "${TRAEFIK_HTTPS_PORT:-443}:443"
- "${TRAEFIK_DASHBOARD_PORT:-8080}:8080"
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
@@ -41,16 +40,17 @@ services:
labels:
- "traefik.enable=true"
# Dashboard Router
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DASHBOARD_HOST:-traefik.local}`)"
# Dashboard Router (HTTPS)
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DASHBOARD_HOST}`)"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.tls.certresolver=le"
# Basic Auth Middleware
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_AUTH_USER:-admin}:${TRAEFIK_AUTH_HASH}"
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_AUTH_USER}:${TRAEFIK_AUTH_HASH}"
# Dashboard secured with Basic Auth
# Apply Auth
- "traefik.http.routers.traefik.middlewares=traefik-auth"
networks: