useful_scripts/ollama-stack.yaml

25 lines
421 B
YAML

version: '3.9'
services:
ollama:
image: ollama/ollama:latest
deploy:
replicas: 1
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
open-webui:
image: ghcr.io/open-webui/open-webui:git-cd92cf0
ports:
- 3000:8080
volumes:
- open-webui:/app/backend/data
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
volumes:
ollama: {}
open-webui: {}