Added healthcheck, Added readyz, livez endpoints
Some checks failed
CI / Lint & Format (push) Successful in 6s
CI / Docker Build (push) Has been cancelled
CI / Tests (Pytest + Alembic + Postgres) (push) Has been cancelled

This commit is contained in:
2025-09-30 12:20:11 +01:00
parent c93f0ccda6
commit 3a49d82d04
2 changed files with 30 additions and 3 deletions

View File

@@ -43,6 +43,11 @@ services:
# ports:
# - "8000:8000"
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata: