epic open webui

This commit is contained in:
Felix Schulze 2025-01-30 21:02:37 +01:00
parent b76e384960
commit 4eb41f4735
3 changed files with 45 additions and 18 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
# SearXNG
SEARXNG_HOSTNAME=localhost:8080/

4
.gitignore vendored
View File

@ -2,3 +2,7 @@
ollama/
.env.local
open-webui/
searxng/

View File

@ -1,14 +1,8 @@
services:
mongodb:
image: mongo:4.4.6
ports:
- 27017:27017
networks:
- chat-ui
ollama-service:
ollama:
image: ollama/ollama:rocm
container_name: ollama
ports:
- 11434:11434
volumes:
@ -16,24 +10,51 @@ services:
devices:
- /dev/kfd # Grant access to /dev/kfd device
- /dev/dri # Grant access to /dev/dri device
networks:
- chat-ui
restart: unless-stopped
chat-ui:
image: ghcr.io/huggingface/chat-ui-db:latest
volumes:
- ./db:/data
- .env.local:/app/.env.local
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-WebUI
ports:
- 3000:3000
environment:
- MONGODB_URL=mongodb://mongodb:27017
- "3000:8080"
volumes:
- ./open-webui:/app/backend/data
depends_on:
- mongodb
- ollama
environment:
- OLLAMA_BASE_URL=http://ollama:11434
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
networks:
- chat-ui
searxng:
container_name: searxng
image: searxng/searxng:latest
ports:
- "8080:8080"
volumes:
- ./searxng:/etc/searxng:rw
env_file:
- .env
restart: unless-stopped
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
networks:
- chat-ui
networks:
chat-ui: