From 6f54cbb777e9ea24b7f5559a89fee3e7b3de799b Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 29 Oct 2025 15:21:52 -0600 Subject: [PATCH] Add Infinity service configuration to docker-compose.yml - Introduced a new service definition for Infinity, including image, container name, restart policy, and command. - Configured health checks and environment variables for the Infinity service. - Added a new volume for Infinity data storage to ensure persistent data management. - Updated service dependencies to include health checks for proper startup order. --- docker-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1d55eed..95a742a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ volumes: postiz-uploads: prometheus_data: qdrant_storage: + ragflow_infinity_data: ragflow_minio_data: ragflow_mysql_data: valkey-data: @@ -831,6 +832,8 @@ services: - MINIO_SECRET_KEY=${RAGFLOW_MINIO_ROOT_PASSWORD} - MINIO_BUCKET=ragflow depends_on: + infinity: + condition: service_healthy ragflow-mysql: condition: service_healthy ragflow-minio: @@ -873,3 +876,22 @@ services: start_period: 10s volumes: - ragflow_minio_data:/data + + infinity: + image: infiniflow/infinity:latest + container_name: infinity + profiles: ["ragflow"] + restart: unless-stopped + command: infinity --config /var/infinity/config.toml + environment: + - INFINITY_LOG_LEVEL=info + ports: + - "23817:23817" + volumes: + - ragflow_infinity_data:/var/infinity/data + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:23817/health"] + interval: 10s + timeout: 5s + retries: 10 + start_period: 30s