feat(docreader): add health check

This commit is contained in:
wizardchen
2025-09-10 20:12:37 +08:00
committed by lyingbug
parent 8a2b38da6f
commit 6f6ca84dae
4 changed files with 22 additions and 1 deletions
+8
View File
@@ -68,6 +68,8 @@ services:
condition: service_healthy
minio:
condition: service_started
docreader:
condition: service_healthy
networks:
- WeKnora-network
restart: unless-stopped
@@ -129,6 +131,12 @@ services:
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
- MINIO_USE_SSL=${MINIO_USE_SSL}
- WEB_PROXY=${WEB_PROXY}
healthcheck:
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- WeKnora-network
restart: unless-stopped