fix: tighten internal semantic compose contracts
This commit is contained in:
+12
-1
@@ -102,6 +102,17 @@ services:
|
||||
- "11434"
|
||||
volumes:
|
||||
- embedding-models:/root/.ollama
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- >
|
||||
/usr/bin/bash -lc "exec 3<>/dev/tcp/127.0.0.1/11434 &&
|
||||
printf 'GET /api/tags HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: close\r\n\r\n' >&3 &&
|
||||
grep -q '200 OK' <&3"
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 10s
|
||||
networks:
|
||||
- thothii
|
||||
|
||||
@@ -117,7 +128,7 @@ services:
|
||||
- ./docker/embedding-model-init.sh:/opt/thoth/embedding-model-init.sh:ro
|
||||
depends_on:
|
||||
embedding:
|
||||
condition: service_started
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- thothii
|
||||
|
||||
|
||||
Reference in New Issue
Block a user