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

### Summary

fix OSError: [Errno 24] Too many open files
This commit is contained in:
Rootkit
2026-08-20 10:43:22 +08:00
committed by GitHub
parent 17a55558b7
commit 834dfc1906

View File

@@ -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