Files
computer-playbook/roles/svc-ai-ollama/config/main.yml
Kevin Veen-Birkenbach 426ba32c11 feat(services): add CPU/RAM/PIDs defaults for heavy roles and align service names
Add per-service resource overrides (cpus, mem_reservation, mem_limit, pids_limit) for ollama, mariadb, postgres, confluence, gitlab, jira, keycloak, nextcloud; light formatting fixes in wordpress.

Rename service keys from generic 'application/web' to concrete names (jira, confluence, gitlab, keycloak) and update compose templates accordingly.

Jira: introduce JIRA_STORAGE_PATH and switch mounts/README accordingly.

https://chatgpt.com/share/68d2d96c-9bf4-800f-bbec-d4f2c0051c06
2025-09-23 21:43:50 +02:00

22 lines
566 B
YAML

features:
local_ai: true # Needs to be set so that network is loaded
docker:
services:
ollama:
backup:
no_stop_required: true
image: ollama/ollama
version: latest
name: ollama
port: 11434
cpus: "4.0"
mem_reservation: "6g"
mem_limit: "8g"
pids_limit: 2048
volumes:
models: "ollama_models"
network: "ollama"
preload_models:
- "llama3:latest"
- "mistral:latest"
- "nomic-embed-text:latest"