Remove ChromaDB healthcheck, use service_started for depends_on
Healthcheck tools (wget/curl) are not reliably available in the chromadb image. Removing the healthcheck and switching rag-server depends_on to service_started avoids the unhealthy container error. https://claude.ai/code/session_012gDnantBmFTWZGCiKyjazx
This commit is contained in:
@@ -278,11 +278,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- IS_PERSISTENT=TRUE
|
- IS_PERSISTENT=TRUE
|
||||||
- ANONYMIZED_TELEMETRY=FALSE
|
- ANONYMIZED_TELEMETRY=FALSE
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "curl -sf http://localhost:8000/api/v1/heartbeat || exit 1"]
|
|
||||||
interval: 15s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
# ── RAG Server — code-aware retrieval ──────────────────────────────────────
|
# ── RAG Server — code-aware retrieval ──────────────────────────────────────
|
||||||
rag-server:
|
rag-server:
|
||||||
@@ -312,7 +307,7 @@ services:
|
|||||||
uvicorn server:app --host 0.0.0.0 --port 8001"
|
uvicorn server:app --host 0.0.0.0 --port 8001"
|
||||||
depends_on:
|
depends_on:
|
||||||
chromadb:
|
chromadb:
|
||||||
condition: service_healthy
|
condition: service_started
|
||||||
ollama:
|
ollama:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user