mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
ollama tweaks
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
# Ollama GPU
|
# Ollama GPU
|
||||||
services:
|
services:
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama
|
image: ${OLLAMA_IMAGE:-ollama/ollama}
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOL_PATH}/ollama:/root/.ollama
|
- ${VOL_PATH}/ollama:/root/.ollama
|
||||||
runtime: nvidia
|
deploy:
|
||||||
environment:
|
resources:
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
reservations:
|
||||||
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: all
|
||||||
|
capabilities: [gpu]
|
||||||
ports:
|
ports:
|
||||||
- "11434:11434"
|
- "11434:11434"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
webui:
|
webui:
|
||||||
image: ${WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:main}
|
image: ${WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:main}
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ WEBUI_IMAGE=ghcr.io/open-webui/open-webui:main
|
|||||||
WEBUI_PORT=8080
|
WEBUI_PORT=8080
|
||||||
WEBUI_SECRET_KEY=a2dddd88c9da5f25786a0eb6e48e66305ee999d2adac8f8af821f82f11f56441 # ChangeMe openssl rand -hex 32
|
WEBUI_SECRET_KEY=a2dddd88c9da5f25786a0eb6e48e66305ee999d2adac8f8af821f82f11f56441 # ChangeMe openssl rand -hex 32
|
||||||
WEBUI_URL=ollama.lan
|
WEBUI_URL=ollama.lan
|
||||||
|
OLLAMA_IMAGE=ollama/ollama:latest
|
||||||
Reference in New Issue
Block a user