fix health checks

parent ed7b5fb6
......@@ -62,11 +62,8 @@ services:
- app-network
restart: "no"
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
# Remove healthcheck for batch job
- postgres
- minio
deploy:
resources:
limits:
......@@ -95,14 +92,11 @@ services:
- app-network
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
data-handler:
condition: service_completed_successfully
- postgres
- minio
- data-handler
healthcheck:
test: ["CMD-SHELL", "python -c 'import requests; requests.get(\"http://localhost:8000/health\")' || exit 1"]
test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
interval: 30s
timeout: 15s
retries: 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment