ollama-openwebui

This commit is contained in:
2024-10-02 15:57:54 +02:00
parent 8c2cfdee98
commit 58b48812f8
3 changed files with 42 additions and 0 deletions

2
ollama-openwebui/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
ollama-data/
openwebui-data/

View File

@@ -0,0 +1,18 @@
# ollama / openwebui stack w/ gpu support
## models
https://ollama.com/library
## setup
https://hub.docker.com/r/ollama/ollama
```bash
curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo \
sudo tee /etc/yum.repos.d/nvidia-container-toolkit.repo
sudo dnf update
sudo dnf install nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
```

View File

@@ -0,0 +1,22 @@
services:
webui:
image: ghcr.io/open-webui/open-webui:ollama
restart: unless-stopped
# environment:
# - OLLAMA_BASE_URL=http://localhost:11434
# network_mode: "host"
ports:
- "4000:8080"
volumes:
- ./openwebui-data:/app/backend/data
- ./ollama-data:/root/.ollama
# extra_hosts:
# - "host.docker.internal:host-gateway"
deploy:
resources:
reservations:
devices:
- driver: nvidia
# count: 1 # alternatively, use `count: all` for all GPUs
count: all
capabilities: [gpu]