Enable health check for dataprep in ChatQnA (#1799)

Signed-off-by: letonghan <letong.han@intel.com>
This commit is contained in:
Letong Han
2025-04-17 15:01:57 +08:00
committed by GitHub
parent 4fc19c7d73
commit ae31e4fb75
20 changed files with 369 additions and 113 deletions

View File

@@ -22,6 +22,12 @@ services:
LANGCHAIN_API_KEY: ${LANGCHAIN_API_KEY}
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
DATAPREP_COMPONENT_NAME: "OPEA_DATAPREP_PINECONE"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5000/v1/health_check || exit 1"]
interval: 10s
timeout: 5s
retries: 50
restart: unless-stopped
tei-embedding-service:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.6
container_name: tei-embedding-server
@@ -89,11 +95,16 @@ services:
image: ${REGISTRY:-opea}/chatqna:${TAG:-latest}
container_name: chatqna-xeon-backend-server
depends_on:
- tei-embedding-service
- dataprep-pinecone-service
- retriever
- tei-reranking-service
- vllm-service
tei-embedding-service:
condition: service_started
dataprep-pinecone-service:
condition: service_healthy
retriever:
condition: service_started
tei-reranking-service:
condition: service_started
vllm-service:
condition: service_started
ports:
- "8888:8888"
environment: