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
+11
View File
@@ -39,6 +39,17 @@ docker compose logs traefik
Confirm that `config/traefik.yml` is mounted and that the ping entrypoint is enabled.
### Backend is unhealthy
Check Traefik logs and verify that the local backend ports respond from the host:
```bash
curl -H 'Host: lab.younerd.org' http://127.0.0.1:8080/
openssl s_client -connect 127.0.0.1:8443 -servername lab.younerd.org
```
Repeat with the hostname and ports from the relevant file under `config/dynamic/`.
### Clients cannot connect
Check that the host is listening on `80/tcp` and `443/tcp`, firewall rules allow inbound traffic, and backend IP addresses are reachable from Traefik. For services bound to host loopback, configure backends as `127.0.0.1:PORT`.