Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix: replace celery container's inherited curl-based healthcheck

harmsolo13d4dbe8d0fe29
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index c8026c72..c1583037 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -123,6 +123,14 @@ services:
- REDIS_URL=redis://redis:6379/0
- SKIP_MIGRATIONS=true
- AUTH_SECRET=${AUTH_SECRET}
+ healthcheck:
+ # Celery has no HTTP server — Dockerfile's curl-based healthcheck always fails.
+ # Use celery's own ping primitive instead.
+ test: ["CMD-SHELL", "celery -A flowsint_core.core.celery inspect ping -d celery@$$HOSTNAME || exit 1"]
+ interval: 30s
+ timeout: 10s
+ retries: 3
+ start_period: 30s
depends_on:
postgres:
condition: service_healthy
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index 62e12cc7..3128c5ea 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -123,6 +123,14 @@ services:
- REDIS_URL=redis://redis:6379/0
- SKIP_MIGRATIONS=true
- AUTH_SECRET=${AUTH_SECRET}
+ healthcheck:
+ # Celery has no HTTP server — Dockerfile's curl-based healthcheck always fails.
+ # Use celery's own ping primitive instead.
+ test: ["CMD-SHELL", "celery -A flowsint_core.core.celery inspect ping -d celery@$$HOSTNAME || exit 1"]
+ interval: 30s
+ timeout: 10s
+ retries: 3
+ start_period: 30s
depends_on:
postgres:
condition: service_healthy