Added healthcheck, Added readyz, livez endpoints
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user