mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-11 17:26:57 +02:00
- docker-compose.unraid.yml : stack prête pour Unraid (Compose Manager), build depuis le repo cloné dans appdata, volumes /mnt/user/appdata/loki, OLLAMA_HOST à adapter, healthcheck - README : section Installation sur Unraid (détection auto des modèles Ollama) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SVay7z3y7q2gEe54ByAE6N
46 lines
2.0 KiB
YAML
46 lines
2.0 KiB
YAML
# ───────────────────────────────────────────────────────────────────────────
|
|
# Loki — docker-compose pour Unraid
|
|
#
|
|
# PRÉREQUIS (une seule fois, via le terminal Unraid) :
|
|
# mkdir -p /mnt/user/appdata/loki
|
|
# git clone https://github.com/R0m1k3/Loki.git /mnt/user/appdata/loki/repo
|
|
# mkdir -p /mnt/user/appdata/loki/workspace /mnt/user/appdata/loki/data
|
|
#
|
|
# Puis colle ce fichier dans le plugin « Compose Manager » (nouvelle stack)
|
|
# et lance « Compose Up ». Pour mettre à jour plus tard :
|
|
# cd /mnt/user/appdata/loki/repo && git pull (puis Compose Up --build)
|
|
#
|
|
# IMPORTANT : remplace l'IP dans OLLAMA_HOST par celle de ton serveur Unraid
|
|
# (là où tourne ton conteneur Ollama, port 11434).
|
|
# ───────────────────────────────────────────────────────────────────────────
|
|
services:
|
|
loki:
|
|
build:
|
|
context: /mnt/user/appdata/loki/repo
|
|
image: loki:latest
|
|
container_name: loki
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
# >>> À ADAPTER : IP de ton serveur Unraid (Ollama écoute sur :11434) <<<
|
|
- OLLAMA_HOST=http://192.168.1.10:11434
|
|
- DEFAULT_MODEL=llama3.1:8b
|
|
- WORKSPACE_DIR=/workspace
|
|
- DATA_DIR=/data
|
|
- PORT=8080
|
|
# Optionnel : instance SearxNG pour l'outil web_search (sinon DuckDuckGo)
|
|
- SEARX_URL=
|
|
volumes:
|
|
- /mnt/user/appdata/loki/workspace:/workspace
|
|
- /mnt/user/appdata/loki/data:/data
|
|
extra_hosts:
|
|
# Permet aussi d'utiliser OLLAMA_HOST=http://host.docker.internal:11434
|
|
- "host.docker.internal:host-gateway"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fsS", "http://localhost:8080/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
restart: unless-stopped
|