homelab/compose/services/open-webui/compose.yaml
Eduardo Figueroa ffff392aa0 feat(ai): Update Ollama and Open WebUI configurations
Ollama:
- Replace Tinyauth middleware with Authelia + local-only
- Enable NVIDIA GPU support

Open WebUI:
- Update RAG search engine to DuckDuckGo
- Disable SSL verification for RAG web loader
- Change default model to qwen2.5:3b
- Remove Tinyauth middleware comment
2025-12-12 23:17:15 +00:00

52 lines
1.3 KiB
YAML

# Open WebUI - ChatGPT-style interface for Ollama
# Docs: https://docs.openwebui.com/
services:
open-webui:
container_name: open-webui
image: ghcr.io/open-webui/open-webui:main
restart: unless-stopped
env_file:
- .env
volumes:
- ./data:/app/backend/data
environment:
# Ollama connection
- OLLAMA_BASE_URL=http://ollama:11434
# Enable RAG (Retrieval-Augmented Generation)
- ENABLE_RAG_WEB_SEARCH=true
- RAG_WEB_SEARCH_ENGINE=duckduckgo
- ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION=false
# Default model
- DEFAULT_MODELS=qwen2.5:3b
networks:
- homelab
labels:
# Traefik
traefik.enable: true
traefik.docker.network: homelab
# Web UI
traefik.http.routers.open-webui.rule: Host(`ai.fig.systems`)
traefik.http.routers.open-webui.entrypoints: websecure
traefik.http.routers.open-webui.tls.certresolver: letsencrypt
traefik.http.services.open-webui.loadbalancer.server.port: 8080
# No SSO - Open WebUI has its own auth system
# Uncomment to add SSO protection:
# Homarr Discovery
homarr.name: Open WebUI (AI Chat)
homarr.group: Services
homarr.icon: mdi:robot
networks:
homelab:
external: true