Ragflow Deploy ragflow-deploy
Deploy RAGFlow with Docker Compose and get it ready for use: the vm.max_map_count requirement for Elasticsearch, release tags and RAGFLOW_IMAGE, docker/.env settings, health checks, model provider setup and creating an API key.
Use it when installing, upgrading or troubleshooting a self-hosted RAGFlow server.
Works in Claude, ChatGPT, Codex and more
- Our test
- 7/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 95k
- infiniflow/ragflow
- Added by
- 0
- members
- Updated
- Dec 6
- commit ab0327f
- Content
- 1 file
- no scripts · 2 KB
- License
- Apache 2.0
- free to use
What our test found
The skill gives a practical deployment and first-run checklist with useful security cautions, though its persistence instruction for `vm.max_map_count` is incomplete.
Request we tested it on“How do I deploy RAGFlow with Docker Compose and verify that it is ready?”
Limits spotted
- It says the `sysctl` change is persistent but provides only a runtime command; persistence requires adding the setting to a sysctl configuration file and applying it.
- The health-check URL and service name may vary by release or configuration, so users may need to verify them against the selected release documentation.
name: ragflow-deploy description: >- Deploy RAGFlow with Docker Compose and get it ready for use: the vm.max_map_count requirement for Elasticsearch, release tags and RAGFLOW_IMAGE, docker/.env settings, health checks, model provider setup and creating an API key. Use when installing, upgrading or troubleshooting a self-hosted RAGFlow server.
Deploying RAGFlow
Reference: docs/quickstart.mdx, docker/README.md, docker/.env.
Start the server
# Elasticsearch (the default document engine) needs this on the Docker host
sysctl vm.max_map_count
sudo sysctl -w vm.max_map_count=262144 # persist in /etc/sysctl.conf
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/docker
git checkout v1.0.0 # or another release tag
# Before first `up`: set a unique ADMIN_DEFAULT_PASSWORD in docker/.env
# (used only when the superuser is created) and restrict host access to
# ADMIN_SVR_HTTP_PORT (default 9381).
docker compose -f docker-compose.yml up -dRAGFLOW_IMAGEindocker/.envmust match the checked-out tag.docker/.envcontrolsDOC_ENGINE, service ports and dependency credentials. Change default passwords before exposing the host.- Images exist for Linux x86-64 and ARM64; Docker picks the right one.
Check it is up
docker ps
docker compose logs ragflow-cpu
curl -f http://localhost/api/v1/system/healthz # add SVR_WEB_HTTP_PORT if changedWait for the health check to return 200 before opening http://<host> in a browser and registering or logging in.
First-time setup
- Avatar → User settings → Model providers: add a provider instance with its API key/base URL, then add a Chat model and an Embedding model.
- Under Set default models, pick the Chat and Embedding defaults.
- Create an API key (guide) for the SDK, HTTP API and MCP endpoint.
Troubleshooting
- If startup reports that the application database version is older than the database version, select a RAGFlow image that supports the database version.
- Elasticsearch crash-looping usually means
vm.max_map_countis too low (on Docker Desktop, set it inside its Linux VM). - After editing
.envorservice_conf.yaml.template, recreate the containers so the entrypoint re-renders the template:docker compose up -d --force-recreate.