feat: add ollama service to docker compose and create Dockerfile

This commit is contained in:
2025-02-16 18:56:21 +08:00
parent fcad744044
commit 8e2d8149df
3 changed files with 56 additions and 17 deletions
+3 -17
View File
@@ -2,14 +2,13 @@
volumes:
open_webui: {}
chromadb: {}
ollama: {}
services:
open_webui:
image: ghcr.io/open-webui/open-webui:main
depends_on:
- chromadb
- ollama
# - ollama
environment:
- CHROMA_HTTP_PORT=8000
- CHROMA_HTTP_HOST=chromadb
@@ -28,6 +27,8 @@ services:
- open_webui:/app/backend/data
ports:
- "8080:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
chromadb:
hostname: chromadb
@@ -40,18 +41,3 @@ services:
- PERSIST_DIRECTORY=/chroma/chroma
ports:
- "8000:8000"
ollama:
image: ollama/ollama:latest
hostname: ollama
volumes:
- ollama:/root/.ollama
ports:
- "11434:11434"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]