traefik.yml updated

This commit is contained in:
kube-master@emrekirman.com 2025-08-13 13:35:21 +00:00
parent b9375fe7e0
commit d32145c613

View File

@ -51,17 +51,6 @@ services:
- node.role == manager # Run Traefik only on manager nodes (recommended) - node.role == manager # Run Traefik only on manager nodes (recommended)
restart_policy: restart_policy:
condition: on-failure condition: on-failure
labels:
# Traefik Dashboard exposure (if enabled)
- traefik.enable=true
- traefik.http.routers.traefik-dashboard.rule=Host(`traefik.emrekirman.xyz`) # Replace with your dashboard domain
- traefik.http.routers.traefik-dashboard.entrypoints=websecure
- traefik.http.routers.traefik-dashboard.service=api@internal
- traefik.http.routers.traefik-dashboard.tls.certresolver=myresolver
# Optional: Basic Auth for Dashboard (highly recommended for production)
# - traefik.http.routers.traefik-dashboard.middlewares=traefik-auth
# - traefik.http.middlewares.traefik-auth.basicauth.users=user:$$apr1$$HASHED_PASSWORD_HERE
# You can generate the hashed password with `echo $(htpasswd -nb user password)`
networks: networks:
traefik-public: traefik-public:
external: true # Use an existing overlay network external: true # Use an existing overlay network