mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-23 00:16:49 +00:00
feat: enhance open_webui service with network configuration and volume updates
This commit is contained in:
+18
-11
@@ -1,9 +1,12 @@
|
|||||||
networks:
|
networks:
|
||||||
|
net:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
traefik-public:
|
traefik-public:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
volumes:
|
# volumes:
|
||||||
open_webui: {}
|
# open_webui: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
open_webui:
|
open_webui:
|
||||||
@@ -11,6 +14,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- chromadb
|
- chromadb
|
||||||
- ollama
|
- ollama
|
||||||
|
user: "${UID}:${GID}"
|
||||||
environment:
|
environment:
|
||||||
- CHROMA_HTTP_PORT=8000
|
- CHROMA_HTTP_PORT=8000
|
||||||
- CHROMA_HTTP_HOST=chromadb
|
- CHROMA_HTTP_HOST=chromadb
|
||||||
@@ -27,10 +31,11 @@ services:
|
|||||||
- RAG_EMBEDDING_MODEL=nomic-embed-text-v1.5
|
- RAG_EMBEDDING_MODEL=nomic-embed-text-v1.5
|
||||||
- RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE="True"
|
- RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE="True"
|
||||||
volumes:
|
volumes:
|
||||||
- open_webui:/app/backend/data
|
- /var/data/open-webui:/app/backend/data
|
||||||
expose:
|
expose:
|
||||||
- ${OPEN_WEBUI_PORT:-8080}
|
- ${OPEN_WEBUI_PORT:-8080}
|
||||||
networks:
|
networks:
|
||||||
|
- net
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
@@ -54,16 +59,17 @@ services:
|
|||||||
chromadb:
|
chromadb:
|
||||||
hostname: chromadb
|
hostname: chromadb
|
||||||
image: chromadb/chroma:latest
|
image: chromadb/chroma:latest
|
||||||
|
user: "${UID}:${GID}"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/chromadb:/chroma/chroma
|
- /var/data/chromadb:/chroma/chroma
|
||||||
environment:
|
environment:
|
||||||
- IS_PERSISTENT=TRUE
|
- IS_PERSISTENT=TRUE
|
||||||
- ALLOW_RESET=TRUE
|
- ALLOW_RESET=TRUE
|
||||||
- PERSIST_DIRECTORY=/chroma/chroma
|
- PERSIST_DIRECTORY=/chroma/chroma
|
||||||
ports:
|
expose:
|
||||||
- target: 8000
|
- 8000
|
||||||
published: 8000
|
networks:
|
||||||
mode: overlay
|
- net
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
@@ -79,11 +85,12 @@ services:
|
|||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama:latest
|
image: ollama/ollama:latest
|
||||||
|
user: "${UID}:${GID}"
|
||||||
hostname: ollama
|
hostname: ollama
|
||||||
ports:
|
expose:
|
||||||
- target: 11434
|
- 11434
|
||||||
published: 11434
|
networks:
|
||||||
mode: overlay
|
- net
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|||||||
Reference in New Issue
Block a user