progress 235b

This commit is contained in:
2026-06-08 15:31:50 +01:00
parent a29793032d
commit de1635872f
25 changed files with 1598 additions and 53 deletions

View File

@@ -1,9 +1,14 @@
# OpenWebUI — ChatGPT-like web UI in front of Ollama. Pre-configured to
# use the host's Ollama instance and the project's SearXNG for web
# search. Default port 3000.
# use the host's Ollama instance and Kagi for web search. Default port
# 3000.
#
# Persistent state (users, conversations, uploaded docs, RAG vector
# index) lives at /srv/docker/openwebui/data so backups touch one path.
#
# Sibling .env file holds KAGI_API_KEY (single shared key — opencode's
# kagimcp MCP on the Mac and this container use the same one). Same
# placeholder-then-fill-in-by-hand pattern as compose/beszel.yml and
# compose/litellm.yml.
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
@@ -22,9 +27,16 @@ services:
# prompt confuses it. OpenWebUI's plain chat UI is the right home.
- OPENAI_API_BASE_URLS=http://host.docker.internal:8000/v1
- OPENAI_API_KEYS=dummy
# Built-in web search via the project's SearXNG instance.
# Built-in web search via Kagi. Kagi-specific env var name is
# KAGI_SEARCH_API_KEY (OpenWebUI's convention); kagimcp on the Mac
# uses KAGI_API_KEY (Kagi's official convention). We standardize on
# KAGI_API_KEY in the .env file and let compose interpolate it
# into OpenWebUI's expected name here.
- ENABLE_RAG_WEB_SEARCH=true
- RAG_WEB_SEARCH_ENGINE=searxng
- SEARXNG_QUERY_URL=https://searxng.n0n.io/search?q=<query>&format=json
- RAG_WEB_SEARCH_ENGINE=kagi
- KAGI_SEARCH_API_KEY=${KAGI_API_KEY}
# Fallback (commented): the self-hosted SearXNG path. Re-enable by
# swapping RAG_WEB_SEARCH_ENGINE back to searxng and uncommenting:
# - SEARXNG_QUERY_URL=https://searxng.n0n.io/search?q=<query>&format=json
volumes:
- /srv/docker/openwebui/data:/app/backend/data