Compare commits

..
Author SHA1 Message Date
hermes cf6ba1d32b fix: limite de RAM 6G para ollama
Sin cap, ollama crece sin freno (visto en docker stats: 3.94 GB y
subiendo). Cap 6G suficiente para llama3.2:3b Q4 + ctx 16k:
- compose (openwebui, wordpress): deploy.resources.limits.memory 6G
- docker run (hermes, openclaw): --memory 6g
2026-09-12 21:32:01 +02:00
hermes 938ca2b268 fix: mensaje del wait-loop de Ollama (no duplicaba el del modelo) (#14)
Co-authored-by: Hermes Agent <hermes@d0a1.es>
2026-09-12 21:27:30 +02:00
hermes 6e311050e5 fix: down/rm ANTES de detectar puertos (#13)
Co-authored-by: Hermes Agent <hermes@d0a1.es>
2026-09-12 21:22:56 +02:00
6 changed files with 12 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ Write-Host ''
Warn '[1/3] Arrancando Ollama (IA local)...' Warn '[1/3] Arrancando Ollama (IA local)...'
$running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-hermes-ollama' $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-hermes-ollama'
if (-not $running) { if (-not $running) {
docker run -d --name d0a1-hermes-ollama ` docker run -d --name d0a1-hermes-ollama --memory 6g `
-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
@@ -101,7 +101,7 @@ Write-Host ''
Warn '[1/3] Arrancando Ollama (IA local)...' Warn '[1/3] Arrancando Ollama (IA local)...'
$running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-openclaw-ollama' $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-openclaw-ollama'
if (-not $running) { if (-not $running) {
docker run -d --name d0a1-openclaw-ollama ` docker run -d --name d0a1-openclaw-ollama --memory 6g `
-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 -1
View File
@@ -128,7 +128,7 @@ docker compose -f $ComposeFile up -d
if ($LASTEXITCODE -ne 0) { Err "docker compose up fallo (exit $LASTEXITCODE)."; exit 1 } if ($LASTEXITCODE -ne 0) { Err "docker compose up fallo (exit $LASTEXITCODE)."; exit 1 }
# --- Pull model ------------------------------------------------------------- # --- Pull model -------------------------------------------------------------
Warn 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...' Info 'Esperando a que Ollama arranque...'
$MaxWait = 60; $Waited = 0 $MaxWait = 60; $Waited = 0
while ($true) { while ($true) {
# Descarte de stderr via cmd /c (ver nota de PS 5.1 / PS #4002 arriba) # Descarte de stderr via cmd /c (ver nota de PS 5.1 / PS #4002 arriba)
+4
View File
@@ -26,6 +26,10 @@ services:
timeout: 5s timeout: 5s
retries: 10 retries: 10
start_period: 30s start_period: 30s
deploy:
resources:
limits:
memory: 6G
openwebui: openwebui:
container_name: d0a1-openwebui container_name: d0a1-openwebui
+1 -1
View File
@@ -165,7 +165,7 @@ docker compose -f $ComposeFile up -d
if ($LASTEXITCODE -ne 0) { Err "docker compose up fallo (exit $LASTEXITCODE)."; exit 1 } if ($LASTEXITCODE -ne 0) { Err "docker compose up fallo (exit $LASTEXITCODE)."; exit 1 }
# --- Pull model ------------------------------------------------------------- # --- Pull model -------------------------------------------------------------
Warn 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...' Info 'Esperando a que Ollama arranque...'
$MaxWait = 60; $Waited = 0 $MaxWait = 60; $Waited = 0
while ($true) { while ($true) {
# Descarte de stderr via cmd /c (ver nota de PS 5.1 / PS #4002 arriba) # Descarte de stderr via cmd /c (ver nota de PS 5.1 / PS #4002 arriba)
+4
View File
@@ -59,6 +59,10 @@ services:
timeout: 5s timeout: 5s
retries: 10 retries: 10
start_period: 30s start_period: 30s
deploy:
resources:
limits:
memory: 6G
openwebui: openwebui:
container_name: d0a1-wp-openwebui container_name: d0a1-wp-openwebui