open-webui/compose.yaml

40 lines
794 B
YAML
Raw Normal View History

2023-10-30 20:52:45 +01:00
version: '3.6'
services:
ollama:
2023-10-31 03:28:05 +01:00
# Uncomment below for GPU support
2023-10-30 21:12:33 +01:00
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities:
# - gpu
2023-10-30 20:52:45 +01:00
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ollama-webui:
build:
context: .
args:
OLLAMA_API_BASE_URL: '/ollama/api'
2023-10-30 20:52:45 +01:00
dockerfile: Dockerfile
image: ollama-webui:latest
container_name: ollama-webui
ports:
- 3000:8080
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
2023-10-30 20:52:45 +01:00
volumes:
ollama: {}