ollama-openwebui
This commit is contained in:
2
ollama-openwebui/.gitignore
vendored
Normal file
2
ollama-openwebui/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
ollama-data/
|
||||||
|
openwebui-data/
|
||||||
18
ollama-openwebui/README.md
Normal file
18
ollama-openwebui/README.md
Normal 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
|
||||||
|
```
|
||||||
22
ollama-openwebui/docker-compose.yml
Normal file
22
ollama-openwebui/docker-compose.yml
Normal 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]
|
||||||
Reference in New Issue
Block a user