2023-10-30 19:52:45 +00:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
ollama:
|
2023-10-31 02:28:05 +00:00
|
|
|
# Uncomment below for GPU support
|
2023-10-30 20:12:33 +00:00
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# reservations:
|
|
|
|
# devices:
|
|
|
|
# - driver: nvidia
|
|
|
|
# count: 1
|
|
|
|
# capabilities:
|
|
|
|
# - gpu
|
2023-10-30 19:52:45 +00: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:
|
2023-11-15 00:42:10 +00:00
|
|
|
OLLAMA_API_BASE_URL: '/ollama/api'
|
2023-10-30 19:52:45 +00:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: ollama-webui:latest
|
|
|
|
container_name: ollama-webui
|
|
|
|
ports:
|
|
|
|
- 3000:8080
|
2023-11-15 00:42:10 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
restart: unless-stopped
|
2023-10-30 19:52:45 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
ollama: {}
|