@@ -32,6 +32,12 @@ services:
3232 HUGGINGFACEHUB_API_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
3333 DATAPREP_TYPE : ${DATAPREP_TYPE}
3434 LOGFLAG : ${LOGFLAG}
35+ healthcheck :
36+ test : ["CMD-SHELL", "curl -f http://localhost:5000/v1/health_check || exit 1"]
37+ interval : 10s
38+ timeout : 5s
39+ retries : 50
40+ restart : unless-stopped
3541 tei-embedding-service :
3642 image : ghcr.io/huggingface/text-embeddings-inference:cpu-1.6
3743 entrypoint : /bin/sh -c "apt-get update && apt-get install -y curl && text-embeddings-router --json-output --model-id ${EMBEDDING_MODEL_ID} --auto-truncate"
@@ -47,7 +53,7 @@ services:
4753 https_proxy : ${https_proxy}
4854 host_ip : ${host_ip}
4955 healthcheck :
50- test : ["CMD-SHELL", "curl -f http://$host_ip:6006 /health || exit 1"]
56+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
5157 interval : 10s
5258 timeout : 10s
5359 retries : 60
@@ -106,7 +112,7 @@ services:
106112 HF_HUB_ENABLE_HF_TRANSFER : 0
107113 host_ip : ${host_ip}
108114 healthcheck :
109- test : ["CMD-SHELL", "curl -f http://$host_ip:8808 /health || exit 1"]
115+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
110116 interval : 10s
111117 timeout : 10s
112118 retries : 60
@@ -147,7 +153,7 @@ services:
147153 HF_HUB_ENABLE_HF_TRANSFER : 0
148154 host_ip : ${host_ip}
149155 healthcheck :
150- test : ["CMD-SHELL", "curl -f http://${host_ip}:9009 /health || exit 1"]
156+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
151157 interval : 10s
152158 timeout : 10s
153159 retries : 100
@@ -176,15 +182,24 @@ services:
176182 image : ${REGISTRY:-opea}/chatqna:${TAG:-latest}
177183 container_name : chatqna-xeon-backend-server
178184 depends_on :
179- - redis-vector-db
180- - tei-embedding-service
181- - dataprep-redis-service
182- - retriever
183- - tei-reranking-service
184- - tgi_service
185- - embedding
186- - reranking
187- - llm
185+ redis-vector-db :
186+ condition : service_started
187+ tei-embedding-service :
188+ condition : service_healthy
189+ dataprep-redis-service :
190+ condition : service_healthy
191+ retriever :
192+ condition : service_started
193+ tei-reranking-service :
194+ condition : service_healthy
195+ tgi_service :
196+ condition : service_healthy
197+ embedding :
198+ condition : service_started
199+ reranking :
200+ condition : service_started
201+ llm :
202+ condition : service_started
188203 ports :
189204 - " 8888:8888"
190205 environment :
@@ -218,10 +233,10 @@ services:
218233 HF_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
219234 host_ip : ${host_ip}
220235 healthcheck :
221- test : ["CMD-SHELL", "curl -f http://$host_ip:8028 /health || exit 1"]
236+ test : ["CMD-SHELL", "curl -f http://localhost:80 /health || exit 1"]
222237 interval : 10s
223238 timeout : 10s
224- retries : 30
239+ retries : 100
225240 command : --model-id ${LLM_MODEL_ID_CODEGEN}
226241 llm_codegen :
227242 image : ${REGISTRY:-opea}/llm-textgen:${TAG:-latest}
0 commit comments