traefik.yml updated
This commit is contained in:
parent
b9375fe7e0
commit
d32145c613
|
|
@ -51,17 +51,6 @@ services:
|
|||
- node.role == manager # Run Traefik only on manager nodes (recommended)
|
||||
restart_policy:
|
||||
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:
|
||||
traefik-public:
|
||||
external: true # Use an existing overlay network
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user