From 14a70c3edd5878ee32cb0224892873f2d6ec5257 Mon Sep 17 00:00:00 2001 From: Richard Palethorpe Date: Mon, 10 Mar 2025 16:09:36 +0000 Subject: [PATCH] Fix no health check ragserver doesn't have a health check and is from scratch image. So do hack to wait for it to come up --- docker-compose.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8985aaf..aebd5df 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -44,12 +44,16 @@ services: - ./volumes/localrag/db:/db - ./volumes/localrag/assets/:/assets + ragserver-healthcheck: + image: busybox + command: ["sh", "-c", "until wget -q -O - http://ragserver:8080 > /dev/null 2>&1; do echo 'Waiting for ragserver...'; sleep 1; done; echo 'RagServer is up!'"] + localagent: depends_on: localai: condition: service_healthy - ragserver: - condition: service_healthy + ragserver-healthcheck: + condition: service_completed_successfully build: context: . dockerfile: Dockerfile.webui @@ -64,4 +68,4 @@ services: - LOCALAGENT_TIMEOUT=5m - LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING=false volumes: - - ./volumes/localagent/:/pool \ No newline at end of file + - ./volumes/localagent/:/pool