@@ -20,8 +20,6 @@ services:
20
20
condition : service_healthy
21
21
ports :
22
22
- " 6007:5000"
23
- - " 6008:6008"
24
- - " 6009:6009"
25
23
environment :
26
24
no_proxy : ${no_proxy}
27
25
http_proxy : ${http_proxy}
@@ -32,6 +30,12 @@ services:
32
30
TEI_EMBEDDING_ENDPOINT : ${TEI_EMBEDDING_ENDPOINT}
33
31
HUGGINGFACEHUB_API_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
34
32
LOGFLAG : ${LOGFLAG}
33
+ healthcheck :
34
+ test : ["CMD-SHELL", "curl -f http://localhost:5000/v1/health_check || exit 1"]
35
+ interval : 10s
36
+ timeout : 5s
37
+ retries : 10
38
+ restart : unless-stopped
35
39
tei-embedding-service :
36
40
image : ghcr.io/huggingface/text-embeddings-inference:cpu-1.6
37
41
entrypoint : /bin/sh -c "apt-get update && apt-get install -y curl && text-embeddings-router --json-output --model-id ${EMBEDDING_MODEL_ID} --auto-truncate"
@@ -48,7 +52,7 @@ services:
48
52
HUGGINGFACEHUB_API_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
49
53
host_ip : ${host_ip}
50
54
healthcheck :
51
- test : ["CMD-SHELL", "curl -f http://$host_ip:6006 /health || exit 1"]
55
+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
52
56
interval : 10s
53
57
timeout : 10s
54
58
retries : 60
@@ -106,7 +110,7 @@ services:
106
110
HF_HUB_ENABLE_HF_TRANSFER : 0
107
111
host_ip : ${host_ip}
108
112
healthcheck :
109
- test : ["CMD-SHELL", "curl -f http://$host_ip:8808 /health || exit 1"]
113
+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
110
114
interval : 10s
111
115
timeout : 10s
112
116
retries : 60
@@ -134,11 +138,18 @@ services:
134
138
image : ${REGISTRY:-opea}/doc-index-retriever:${TAG:-latest}
135
139
container_name : doc-index-retriever-server
136
140
depends_on :
137
- - redis-vector-db
138
- - tei-embedding-service
139
- - embedding
140
- - retriever
141
- - reranking
141
+ redis-vector-db :
142
+ condition : service_started
143
+ tei-embedding-service :
144
+ condition : service_healthy
145
+ embedding :
146
+ condition : service_started
147
+ dataprep-redis-service :
148
+ condition : service_healthy
149
+ retriever :
150
+ condition : service_started
151
+ reranking :
152
+ condition : service_started
142
153
ports :
143
154
- " 8889:8889"
144
155
environment :
0 commit comments