2023-12-23 18:33:15 +01:00
|
|
|
version: '3.8'
|
2023-10-30 20:52:45 +01: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 01:42:10 +01:00
|
|
|
OLLAMA_API_BASE_URL: '/ollama/api'
|
2023-10-30 20:52:45 +01:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: ollama-webui:latest
|
|
|
|
container_name: ollama-webui
|
2023-11-17 19:38:29 +01:00
|
|
|
depends_on:
|
|
|
|
- ollama
|
2023-10-30 20:52:45 +01:00
|
|
|
ports:
|
2023-12-23 18:33:15 +01:00
|
|
|
- ${OLLAMA_WEBUI_PORT-3000}:8080
|
2023-11-17 19:38:29 +01:00
|
|
|
environment:
|
|
|
|
- "OLLAMA_API_BASE_URL=http://ollama:11434/api"
|
2023-11-15 01:42:10 +01:00
|
|
|
extra_hosts:
|
2023-11-17 19:38:29 +01:00
|
|
|
- host.docker.internal:host-gateway
|
2023-11-15 01:42:10 +01:00
|
|
|
restart: unless-stopped
|
2023-10-30 20:52:45 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
ollama: {}
|