sidebar_position: 1
Configurations for deploying RAGFlow via Docker.
When it comes to system configurations, you will need to manage the following files:
service_conf.yaml file will be generated based on this template file. This process replaces any environment variables within the template, allowing for dynamic configuration tailored to the container’s environment.<YOUR_SERVING_PORT>:80.<YOUR_SERVING_PORT>:80.<YOUR_SERVING_PORT>:80.<YOUR_SERVING_PORT>:80.<YOUR_SERVING_PORT>:80.:::tip NOTE Updates to the above configurations require a reboot of all containers to take effect:
docker compose -f docker/docker-compose.yml up -d
:::
:::danger IMPORTANT We do not actively maintain docker-compose-CN-oc9.yml, docker-compose-gpu-CN-oc9.yml, or docker-compose-gpu.yml, so use them at your own risk. However, you are welcome to file a pull request to improve any of them. :::
The .env file contains important environment variables for Docker.
STACK_VERSION8.11.3ES_PORT1200.ELASTIC_PASSWORDKIBANA_PORT6601.KIBANA_USERrag_flow.KIBANA_PASSWORDinfini_rag_flow.MEM_LIMIT8073741824.MYSQL_PASSWORDMYSQL_PORT5455.MINIO_CONSOLE_PORT9001MINIO_PORT9000.MINIO_USERMINIO_PASSWORDREDIS_PORT6379.REDIS_PASSWORDSVR_HTTP_PORT9380.RAGFLOW-IMAGE
The Docker image edition. Available editions:
infiniflow/ragflow:v0.15.0-slim (default): The RAGFlow Docker image without embedding models.infiniflow/ragflow:v0.15.0: The RAGFlow Docker image with embedding models including:BAAI/bge-large-zh-v1.5BAAI/bge-reranker-v2-m3maidalun1020/bce-embedding-base_v1maidalun1020/bce-reranker-base_v1BAAI/bge-base-en-v1.5BAAI/bge-large-en-v1.5BAAI/bge-small-en-v1.5BAAI/bge-small-zh-v1.5jinaai/jina-embeddings-v2-base-enjinaai/jina-embeddings-v2-small-ennomic-ai/nomic-embed-text-v1.5sentence-transformers/all-MiniLM-L6-v2
:::tip NOTE
If you cannot download the RAGFlow Docker image, try the following mirrors.
nightly-slim edition:RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:nightly-slim or,RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:nightly-slim.nightly edition:RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:nightly or,RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:nightly.
:::TIMEZONE'Asia/Shanghai'.HF_ENDPOINTMACOSservice_conf.yaml.template specifies the system-level configuration for RAGFlow and is used by its API server and task executor.
ragflowhost: The API server’s IP address inside the Docker container. Defaults to 0.0.0.0.port: The API server’s serving port inside the Docker container. Defaults to 9380.mysqlname: The MySQL database name. Defaults to rag_flow.user: The username for MySQL.password: The password for MySQL.port: The MySQL serving port inside the Docker container. Defaults to 3306.max_connections: The maximum number of concurrent connections to the MySQL database. Defaults to 100.stale_timeout: Timeout in seconds.miniouser: The username for MinIO.password: The password for MinIO.host: The MinIO serving IP and port inside the Docker container. Defaults to minio:9000.oauthThe OAuth configuration for signing up or signing in to RAGFlow using a third-party account. It is disabled by default. To enable this feature, uncomment the corresponding lines in service_conf.yaml.template.
github: The GitHub authentication settings for your application. Visit the Github Developer Settings page to obtain your client_id and secret_key.user_default_llmThe default LLM to use for a new RAGFlow user. It is disabled by default. To enable this feature, uncomment the corresponding lines in service_conf.yaml.template.
factory: The LLM supplier. Available options:
"OpenAI""DeepSeek""Moonshot""Tongyi-Qianwen""VolcEngine""ZHIPU-AI"api_key: The API key for the specified LLM. You will need to apply for your model API key online.:::tip NOTE
If you do not set the default LLM here, configure the default LLM on the Settings page in the RAGFlow UI.
:::