Implementation:Infiniflow Ragflow Docker Compose Services
Appearance
| Knowledge Sources | |
|---|---|
| Domains | DevOps, Infrastructure |
| Last Updated | 2026-02-12 06:00 GMT |
Overview
External tool documentation for deploying RAGFlow infrastructure via Docker Compose.
Description
The Docker Compose configuration defines services across two files: docker-compose-base.yml (326 lines) for infrastructure and docker-compose.yml (133 lines) for the RAGFlow application. Services: MySQL 8.0.39 (port 3306), MinIO (ports 9000/9001), Redis/Valkey 8 (port 6379), Elasticsearch 8.11.3 (port 1200), and optionally Infinity or OceanBase.
Usage
Run from the docker/ directory after configuring environment variables.
Code Reference
Source Location
- Repository: ragflow
- File: docker/docker-compose-base.yml (L1-326), docker/docker-compose.yml (L1-133)
Signature
# Start all services
cd docker
docker compose -f docker-compose.yml up -d
# Start only infrastructure (for local development)
docker compose -f docker-compose-base.yml up -d
# Check service status
docker compose ps
# View logs
docker logs -f ragflow-server
Import
# Docker commands - no import needed
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| docker/.env | file | Yes | Environment configuration |
| Docker engine | service | Yes | Docker daemon running |
Outputs
| Name | Type | Description |
|---|---|---|
| Running services | containers | MySQL, MinIO, Redis, ES/Infinity, RAGFlow |
| Named volumes | persistent storage | esdata01, mysql_data, minio_data, redis_data |
| Bridge network | network | ragflow network for inter-service communication |
Usage Examples
# Full deployment
cd docker
docker compose up -d
# Check all services are healthy
docker compose ps
# NAME STATUS PORTS
# es01 Up (healthy) 0.0.0.0:1200->9200/tcp
# mysql Up (healthy) 0.0.0.0:3306->3306/tcp
# minio Up (healthy) 0.0.0.0:9000->9000/tcp
# redis Up (healthy) 0.0.0.0:6379->6379/tcp
# ragflow Up (healthy) 0.0.0.0:9380->9380/tcp
# Stop and clean up (preserving data)
docker compose down
# Full cleanup (WARNING: destroys data)
docker compose down -v
Related Pages
Implements Principle
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment