From 8587141c696956d3f62ed7c19d45f569bcd99d86 Mon Sep 17 00:00:00 2001 From: furyhawk Date: Sat, 10 Jan 2026 22:16:08 +0800 Subject: [PATCH] fix: update chromadb service configuration with healthcheck and environment variables --- swarm/openwebui.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/swarm/openwebui.yml b/swarm/openwebui.yml index cd68c50..967f857 100644 --- a/swarm/openwebui.yml +++ b/swarm/openwebui.yml @@ -59,13 +59,16 @@ services: max_attempts: 3 chromadb: + hostname: chromadb image: chromadb/chroma:latest volumes: - chromadb:/data environment: - - IS_PERSISTENT=true - - ALLOW_RESET=true + - IS_PERSISTENT=TRUE + - ALLOW_RESET=TRUE - PERSIST_DIRECTORY=/data + - ANONYMIZED_TELEMETRY=False + - CHROMA_SERVER_HOST=0.0.0.0 expose: - 8000 networks: @@ -79,8 +82,15 @@ services: condition: any delay: 5s max_attempts: 3 + healthcheck: + test: ["CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 10s ollama: + hostname: ollama image: ollama/ollama:latest volumes: - ollama:/root/.ollama