Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Add ulimits for cpu and gpu services in Docker Compose (#17205)

Rootkit834dfc1906d4
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 5194984bae..454567e924 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -26,6 +26,13 @@ services:
profiles:
- cpu
image: ${RAGFLOW_IMAGE}
+ ulimits:
+ nofile:
+ soft: 65535
+ hard: 65535
+ nproc:
+ soft: 65535
+ hard: 65535
# Example configuration to set up an MCP server:
# command:
# - --enable-mcpserver
@@ -78,6 +85,13 @@ services:
profiles:
- gpu
image: ${RAGFLOW_IMAGE}
+ ulimits:
+ nofile:
+ soft: 65535
+ hard: 65535
+ nproc:
+ soft: 65535
+ hard: 65535
# Example configuration to set up an MCP server:
# command:
# - --enable-mcpserver