Principle:Infiniflow Ragflow Infrastructure Orchestration
| Knowledge Sources | |
|---|---|
| Domains | DevOps, Infrastructure, Containerization |
| Last Updated | 2026-02-12 06:00 GMT |
Overview
A container orchestration pattern using Docker Compose to deploy and manage RAGFlow's infrastructure services with health checks and profile-based selection.
Description
Infrastructure Orchestration uses Docker Compose with profile-based service selection. Core services (MySQL, MinIO, Redis) always start. The document store (Elasticsearch, Infinity, OpenSearch, or OceanBase) is selected via COMPOSE_PROFILES derived from DOC_ENGINE. All services include health checks with configurable intervals and retry counts. Named volumes ensure data persistence.
Usage
Run after environment configuration. The docker compose command starts all required services based on the configured profiles.
Theoretical Basis
Docker Compose provides declarative infrastructure:
- Profiles: Select services based on DOC_ENGINE and DEVICE configuration
- Health checks: Ensure services are ready before dependents start
- Named volumes: Persist data across container restarts
- Networks: Isolated bridge network for service communication