OpenWebUI integration

This commit is contained in:
2025-09-11 14:05:33 +02:00
parent 73a70a98b0
commit c571969b93

View File

@@ -11,7 +11,7 @@ services:
TMP_ROOT: /tmpdl
WHISPER_MODEL: large-v3
WHISPER_PRECISION: int8
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://host.docker.internal:3003}
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://open-webui:8080}
OPENWEBUI_API_KEY: ${OPENWEBUI_API_KEY}
OPENWEBUI_KB_NAME: ${OPENWEBUI_KB_NAME:-Homelab Library}
OPENWEBUI_KB_ID: ${OPENWEBUI_KB_ID:-}
@@ -22,7 +22,7 @@ services:
- ${MODELS_HOST_DIR:-./models}:/root/.cache/huggingface
- ./app:/app
ports: ["8088:8080"]
depends_on: [podx-worker, meili, redis]
depends_on: [podx-worker, meili, redis, open-webui]
restart: unless-stopped
extra_hosts:
- host.docker.internal:host-gateway
@@ -50,7 +50,7 @@ services:
WHISPER_RESUME: ${WHISPER_RESUME:-1}
WHISPER_PARTIAL_SAVE_EVERY_SEGS: ${WHISPER_PARTIAL_SAVE_EVERY_SEGS:-20}
WORKER_MODE: all
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://host.docker.internal:3003}
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://open-webui:8080}
OPENWEBUI_API_KEY: ${OPENWEBUI_API_KEY}
OPENWEBUI_KB_NAME: ${OPENWEBUI_KB_NAME:-Homelab Library}
OPENWEBUI_KB_ID: ${OPENWEBUI_KB_ID:-}
@@ -65,7 +65,7 @@ services:
- ${TMP_HOST_DIR:-./tmp}:/tmpdl
- ${MODELS_HOST_DIR:-./models}:/root/.cache/huggingface
- ./app:/app
depends_on: [meili, redis]
depends_on: [meili, redis, open-webui]
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "exit 0"]
@@ -90,7 +90,7 @@ services:
WHISPER_RESUME: ${WHISPER_RESUME:-1}
WHISPER_PARTIAL_SAVE_EVERY_SEGS: ${WHISPER_PARTIAL_SAVE_EVERY_SEGS:-20}
WORKER_MODE: transcribe
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://host.docker.internal:3003}
OPENWEBUI_URL: ${OPENWEBUI_CONTAINER_URL:-http://open-webui:8080}
OPENWEBUI_API_KEY: ${OPENWEBUI_API_KEY}
OPENWEBUI_KB_NAME: ${OPENWEBUI_KB_NAME:-Homelab Library}
OPENWEBUI_KB_ID: ${OPENWEBUI_KB_ID:-}
@@ -105,7 +105,7 @@ services:
- ${TMP_HOST_DIR:-./tmp}:/tmpdl
- ${MODELS_HOST_DIR:-./models}:/root/.cache/huggingface
- ./app:/app
depends_on: [meili, redis]
depends_on: [meili, redis, open-webui]
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "exit 0"]
@@ -130,6 +130,37 @@ services:
- ${REDIS_DATA_HOST_DIR:-./data/redis}:/data
restart: unless-stopped
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
volumes:
- ${OLLAMA_DATA_HOST_DIR:-./data/ollama}:/root/.ollama
tty: true
restart: unless-stopped
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${OPENWEBUI_SECRET_KEY:-}
volumes:
- ${OPENWEBUI_DATA_HOST_DIR:-./data/open-webui}:/app/backend/data
depends_on:
- ollama
ports:
- "3003:8080"
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/api/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
metube:
image: alexta69/metube:latest
container_name: metube