feat: add healthcheck and enable ping API for Traefik proxy manifests

This commit is contained in:
Emre Kirman 2026-05-02 12:01:30 +03:00
parent 5b783f9f45
commit 7e2e26ddd4
2 changed files with 18 additions and 0 deletions

View File

@ -34,6 +34,9 @@ services:
# Log Level (optional)
- --log.level=INFO
# Ping API (required for healthcheck)
- --ping=true
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=60s
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=60s
@ -46,6 +49,12 @@ services:
- /var/data/logs:/var/log/traefik # Persistent storage for access logs (optional)
networks:
- traefik-public
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
deploy:
mode: global # Deploy Traefik on all manager nodes (or a specific one with placement constraints)
placement:

View File

@ -34,6 +34,9 @@ services:
# Log Level (optional)
- --log.level=INFO
# Ping API (required for healthcheck)
- --ping=true
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=60s
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=60s
@ -47,6 +50,12 @@ services:
- /var/data/logs:/var/log/traefik # Persistent storage for access logs (optional)
networks:
- traefik-public
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
deploy:
mode: global # Deploy Traefik on all manager nodes (or a specific one with placement constraints)
placement: