feat: add backend health checks

This commit is contained in:
Alfredo Di Stasio
2026-06-30 10:53:01 +02:00
parent 86680f71f3
commit 741ed4764d
7 changed files with 43 additions and 2 deletions
+4 -1
View File
@@ -24,7 +24,7 @@ Dynamic configuration changes under `config/dynamic/` are watched by Traefik and
## Health checks
The container healthcheck runs:
The Traefik container healthcheck runs:
```bash
traefik healthcheck --ping
@@ -36,6 +36,8 @@ Check health with:
docker compose ps
```
Backend services also define Traefik load-balancer health checks in each file under `config/dynamic/`. HTTP checks call `/` with the configured hostname; TCP checks verify that the local TLS port accepts connections.
## Logs
Traefik logs to container stdout:
@@ -58,3 +60,4 @@ For HTTP on port `80`, update the HTTP services in the relevant site file under
- Backend certificates and renewal jobs must be monitored on each backend.
- SNI routing depends on clients sending the expected hostname during the TLS handshake. Clients that connect by IP address or omit SNI will not match hostname-specific routers.
- Public port `80/tcp` forwards all HTTP paths for configured hostnames to the matching backend.
- TCP health checks verify reachability, not certificate validity or application-level correctness.