Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(docker): decouple ollama healthcheck from model pull (#3885)

LearningCircuit22e22ca58e72
diff --git a/docker-compose.yml b/docker-compose.yml
index 1d915e8b9c..fbecad65d9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -180,12 +180,23 @@ services:
container_name: ollama_service
entrypoint: "/scripts/ollama_entrypoint.sh ${MODEL:-gemma3:12b}"
+ # Healthcheck probes the daemon, not a specific model.
+ # `ollama list` succeeds as soon as the API server is responsive (returns
+ # an empty list if no models are installed). Considered-and-rejected:
+ # `ollama show ${MODEL:-...}` — that gates "healthy" on the configured
+ # model finishing its pull, which (a) blocked LDR boot for 10+ minutes
+ # while gemma3:12b downloads, (b) misleadingly reported the daemon as
+ # broken when only the model was missing, and (c) gated LDR boot on
+ # ollama even for users running LM Studio / OpenAI / llama.cpp who don't
+ # use ollama at all (LDR depends_on ollama: service_healthy). The
+ # entrypoint still pulls the configured model in the background; the
+ # first request just waits for the pull to finish if it's still running.
healthcheck:
- test: [ "CMD", "ollama", "show", "${MODEL:-gemma3:12b}" ]
+ test: [ "CMD", "ollama", "list" ]
interval: 10s
timeout: 5s
- start_period: 10m
- retries: 2
+ start_period: 30s
+ retries: 5
environment:
OLLAMA_KEEP_ALIVE: '30m'
volumes: