feat: update open_webui service with new volume configurations for chromadb and ollama

This commit is contained in:
2025-01-31 16:24:46 +08:00
parent fb5a5ba603
commit 16c1fa0efa
+9 -10
View File
@@ -5,8 +5,10 @@ networks:
traefik-public:
external: true
# volumes:
# open_webui: {}
volumes:
open_webui: {}
chromadb: {}
ollama: {}
services:
open_webui:
@@ -14,7 +16,6 @@ services:
depends_on:
- chromadb
- ollama
user: "${UID}:${GID}"
environment:
- CHROMA_HTTP_PORT=8000
- CHROMA_HTTP_HOST=chromadb
@@ -31,7 +32,7 @@ services:
- RAG_EMBEDDING_MODEL=nomic-embed-text-v1.5
- RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE="True"
volumes:
- /var/data/open-webui:/app/backend/data
- open-webui:/app/backend/data
expose:
- ${OPEN_WEBUI_PORT:-8080}
networks:
@@ -59,9 +60,8 @@ services:
chromadb:
hostname: chromadb
image: chromadb/chroma:latest
user: "${UID}:${GID}"
volumes:
- /var/data/chromadb:/chroma/chroma
- chromadb:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- ALLOW_RESET=TRUE
@@ -85,8 +85,9 @@ services:
ollama:
image: ollama/ollama:latest
user: "${UID}:${GID}"
hostname: ollama
volumes:
- ollama:/root/.ollama
expose:
- 11434
networks:
@@ -96,6 +97,4 @@ services:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
volumes:
- /var/data/ollama:/root/.ollama
max_attempts: 3