fix health checks

parent ed7b5fb6
...@@ -62,11 +62,8 @@ services: ...@@ -62,11 +62,8 @@ services:
- app-network - app-network
restart: "no" restart: "no"
depends_on: depends_on:
postgres: - postgres
condition: service_healthy - minio
minio:
condition: service_healthy
# Remove healthcheck for batch job
deploy: deploy:
resources: resources:
limits: limits:
...@@ -95,14 +92,11 @@ services: ...@@ -95,14 +92,11 @@ services:
- app-network - app-network
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
postgres: - postgres
condition: service_healthy - minio
minio: - data-handler
condition: service_healthy
data-handler:
condition: service_completed_successfully
healthcheck: 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 interval: 30s
timeout: 15s timeout: 15s
retries: 5 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