feat(ops): add /healthz endpoint and container healthcheck

Expose a lightweight /healthz route on the main aiohttp server and
wire docker-compose healthcheck so orchestrators can detect failures.
This commit is contained in:
3252a8
2026-04-27 08:43:58 +03:00
parent 4740666d63
commit dae1a6889b
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -14,6 +14,12 @@ services:
ports:
- 127.0.0.1:8080:8080
- 127.0.0.1:${WEBAPP_SERVER_PORT:-8081}:${WEBAPP_SERVER_PORT:-8081}
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/healthz >/dev/null || exit 1"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
remnawave-tg-shop-db:
image: postgres:17