mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
22 lines
587 B
YAML
22 lines
587 B
YAML
# Ollama CPU
|
|
|
|
services:
|
|
ollama-cpu:
|
|
image: ollama/ollama
|
|
ports:
|
|
- "11434:11434"
|
|
volumes:
|
|
- "${VOL_PATH:-/data}/ollama:/root/.ollama"
|
|
|
|
webui-cpu:
|
|
image: ${WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:main}
|
|
volumes:
|
|
- "${VOL_PATH:-/data}/webui/cache:/root/.cache"
|
|
- "${VOL_PATH:-/data}/webui/data:/app/backend/data"
|
|
environment:
|
|
- WEBUI_URL=${WEBUI_URL:-http://localhost:8080}
|
|
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:?must_be_set}
|
|
- OLLAMA_BASE_URL=http://ollama-cpu:11434
|
|
ports:
|
|
- "${WEBUI_PORT:-8080}:8080"
|
|
|