Med Openwebui

This commit is contained in:
2026-02-22 19:09:34 +01:00
parent 4a555b141b
commit 09e2111295
2 changed files with 17 additions and 1 deletions

5
.env
View File

@@ -1,3 +1,6 @@
OLLAMA_DATA_DIR=/datadisk/docker/ollama OLLAMA_DATA_DIR=/datadisk/docker/ollama
OLLAMA_PORT=11434 OLLAMA_PORT=11434
OLLAMA_HOST=0.0.0.0:11434 OLLAMA_HOST=0.0.0.0:11434
OPENWEBUI_PORT=3000
OPENWEBUI_DATA_DIR=/datadisk/docker/open-webui

View File

@@ -12,3 +12,16 @@ services:
volumes: volumes:
- "${OLLAMA_DATA_DIR:-/datadisk/docker/ollama}:/root/.ollama" - "${OLLAMA_DATA_DIR:-/datadisk/docker/ollama}:/root/.ollama"
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
depends_on:
- ollama
environment:
- OLLAMA_BASE_URL=http://ollama:11434
ports:
- "${OPENWEBUI_PORT:-3000}:8080"
volumes:
- "${OPENWEBUI_DATA_DIR:-/datadisk/docker/open-webui}:/app/backend/data"