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
This commit is contained in:
@@ -44,12 +44,16 @@ services:
|
|||||||
- ./volumes/localrag/db:/db
|
- ./volumes/localrag/db:/db
|
||||||
- ./volumes/localrag/assets/:/assets
|
- ./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:
|
localagent:
|
||||||
depends_on:
|
depends_on:
|
||||||
localai:
|
localai:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ragserver:
|
ragserver-healthcheck:
|
||||||
condition: service_healthy
|
condition: service_completed_successfully
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.webui
|
dockerfile: Dockerfile.webui
|
||||||
|
|||||||
Reference in New Issue
Block a user