mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-20 05:28:15 +02:00
Ajout compose Unraid et documentation d'installation
- 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
This commit is contained in:
1 parent
66be893ea6
commit
8bb55c7ea7
2 files changed
+64
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# ───────────────────────────────────────────────────────────────────────────
|
||||
# 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
|
||||
Reference in new issue
Block a user