fix: limite de CPU 6.0 para ollama (#25)

Co-authored-by: Hermes Agent <hermes@d0a1.es>
This commit was merged in pull request #25.
This commit is contained in:
hermes authored and Hermes committed 2026-09-12 23:07:46 +02:00
1 parent 5030770bc2
commit 9438b75c9f
4 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-hermes-o
if (-not $running) { if (-not $running) {
$GpuArgs = @() $GpuArgs = @()
if ($HasGpu) { $GpuArgs = @('--gpus', 'all') } if ($HasGpu) { $GpuArgs = @('--gpus', 'all') }
docker run -d --name d0a1-hermes-ollama --memory 6g @GpuArgs ` docker run -d --name d0a1-hermes-ollama --memory 6g --cpus 6.0 @GpuArgs `
-p "${OllamaPort}:11434" ` -p "${OllamaPort}:11434" `
-v d0a1_hermes_ollama:/root/.ollama ` -v d0a1_hermes_ollama:/root/.ollama `
-e OLLAMA_HOST=0.0.0.0 ` -e OLLAMA_HOST=0.0.0.0 `
+1 -1
View File
@@ -117,7 +117,7 @@ $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-openclaw
if (-not $running) { if (-not $running) {
$GpuArgs = @() $GpuArgs = @()
if ($HasGpu) { $GpuArgs = @('--gpus', 'all') } if ($HasGpu) { $GpuArgs = @('--gpus', 'all') }
docker run -d --name d0a1-openclaw-ollama --memory 6g @GpuArgs ` docker run -d --name d0a1-openclaw-ollama --memory 6g --cpus 6.0 @GpuArgs `
-p "${OllamaPort}:11434" ` -p "${OllamaPort}:11434" `
-v d0a1_openclaw_ollama:/root/.ollama ` -v d0a1_openclaw_ollama:/root/.ollama `
-e OLLAMA_HOST=0.0.0.0 ` -e OLLAMA_HOST=0.0.0.0 `
+1
View File
@@ -30,6 +30,7 @@ services:
resources: resources:
limits: limits:
memory: 6G memory: 6G
cpus: "6.0"
openwebui: openwebui:
container_name: d0a1-openwebui container_name: d0a1-openwebui
+1
View File
@@ -63,6 +63,7 @@ services:
resources: resources:
limits: limits:
memory: 6G memory: 6G
cpus: "6.0"
openwebui: openwebui:
container_name: d0a1-wp-openwebui container_name: d0a1-wp-openwebui