[ChatQnA][docker]Check healthy of redis to avoid dataprep failure (#1591)

Signed-off-by: Li Gang <gang.g.li@intel.com>
This commit is contained in:
Li Gang
2025-03-13 10:52:33 +08:00
committed by GitHub
parent effa2a28cf
commit 0701b8cfff
2 changed files with 18 additions and 4 deletions

View File

@@ -8,12 +8,19 @@ services:
ports: ports:
- "6379:6379" - "6379:6379"
- "8001:8001" - "8001:8001"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
dataprep-redis-service: dataprep-redis-service:
image: ${REGISTRY:-opea}/dataprep:${TAG:-latest} image: ${REGISTRY:-opea}/dataprep:${TAG:-latest}
container_name: dataprep-redis-server container_name: dataprep-redis-server
depends_on: depends_on:
- redis-vector-db redis-vector-db:
- tei-embedding-service condition: service_healthy
tei-embedding-service:
condition: service_started
ports: ports:
- "6007:5000" - "6007:5000"
environment: environment:

View File

@@ -8,12 +8,19 @@ services:
ports: ports:
- "6379:6379" - "6379:6379"
- "8001:8001" - "8001:8001"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
dataprep-redis-service: dataprep-redis-service:
image: ${REGISTRY:-opea}/dataprep:${TAG:-latest} image: ${REGISTRY:-opea}/dataprep:${TAG:-latest}
container_name: dataprep-redis-server container_name: dataprep-redis-server
depends_on: depends_on:
- redis-vector-db redis-vector-db:
- tei-embedding-service condition: service_healthy
tei-embedding-service:
condition: service_started
ports: ports:
- "6007:5000" - "6007:5000"
environment: environment: