2023-12-23 17:33:15 +00:00
|
|
|
version: '3.8'
|
2023-10-30 19:52:45 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
ollama:
|
|
|
|
volumes:
|
|
|
|
- ollama:/root/.ollama
|
|
|
|
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
|
2023-12-24 12:47:25 +00:00
|
|
|
image: ghcr.io/ollama-webui/ollama-webui:main
|
2023-10-30 19:52:45 +00:00
|
|
|
container_name: ollama-webui
|
2023-12-27 01:36:06 +00:00
|
|
|
volumes:
|
2023-12-27 08:11:23 +00:00
|
|
|
- ollama-webui:/app/backend/data
|
2023-11-17 18:38:29 +00:00
|
|
|
depends_on:
|
|
|
|
- ollama
|
2023-10-30 19:52:45 +00:00
|
|
|
ports:
|
2023-12-23 17:33:15 +00:00
|
|
|
- ${OLLAMA_WEBUI_PORT-3000}:8080
|
2023-11-17 18:38:29 +00:00
|
|
|
environment:
|
2024-01-03 22:33:57 +00:00
|
|
|
- 'OLLAMA_API_BASE_URL=http://ollama:11434/api'
|
2023-11-15 00:42:10 +00:00
|
|
|
extra_hosts:
|
2023-11-17 18:38:29 +00:00
|
|
|
- host.docker.internal:host-gateway
|
2023-11-15 00:42:10 +00:00
|
|
|
restart: unless-stopped
|
2023-10-30 19:52:45 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
ollama: {}
|
2023-12-27 01:36:06 +00:00
|
|
|
ollama-webui: {}
|