From 16c1fa0efaf2aaf217c693320b522d032fab2e0d Mon Sep 17 00:00:00 2001 From: furyhawk Date: Fri, 31 Jan 2025 16:24:46 +0800 Subject: [PATCH] feat: update open_webui service with new volume configurations for chromadb and ollama --- swarm/openwebui.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/swarm/openwebui.yml b/swarm/openwebui.yml index e22afa6..e33cf48 100644 --- a/swarm/openwebui.yml +++ b/swarm/openwebui.yml @@ -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 \ No newline at end of file + max_attempts: 3 \ No newline at end of file