mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-27 18:56:31 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user