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
|
2024-04-06 03:48:16 +00:00
|
|
|
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
|
2023-10-30 19:52:45 +00:00
|
|
|
|
2024-02-17 07:30:38 +00:00
|
|
|
open-webui:
|
2023-10-30 19:52:45 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2024-03-06 19:44:00 +00:00
|
|
|
OLLAMA_BASE_URL: '/ollama'
|
2023-10-30 19:52:45 +00:00
|
|
|
dockerfile: Dockerfile
|
2024-05-15 15:10:00 +00:00
|
|
|
image: ghcr.io/open-webui/open-webui:dev
|
2024-02-17 07:30:38 +00:00
|
|
|
container_name: open-webui
|
2023-12-27 01:36:06 +00:00
|
|
|
volumes:
|
2024-02-17 07:30:38 +00:00
|
|
|
- open-webui:/app/backend/data
|
2023-11-17 18:38:29 +00:00
|
|
|
depends_on:
|
|
|
|
- ollama
|
2023-10-30 19:52:45 +00:00
|
|
|
ports:
|
2024-02-25 12:49:04 +00:00
|
|
|
- ${OPEN_WEBUI_PORT-3000}:8080
|
2023-11-17 18:38:29 +00:00
|
|
|
environment:
|
2024-03-06 19:44:00 +00:00
|
|
|
- 'OLLAMA_BASE_URL=http://ollama:11434'
|
2024-02-01 19:40:59 +00:00
|
|
|
- 'WEBUI_SECRET_KEY='
|
2024-05-15 15:10:00 +00:00
|
|
|
- 'OPENAI_API_KEY=${OPENAI_API_KEY}'
|
|
|
|
- 'LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}'
|
|
|
|
- 'LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}'
|
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
|
|
|
|
2024-05-15 15:10:00 +00:00
|
|
|
watchtower:
|
|
|
|
container_name: watchtower
|
|
|
|
image: containrrr/watchtower:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
- WATCHTOWER_CLEANUP=true
|
|
|
|
- WATCHTOWER_POLL_INTERVAL=1800
|
|
|
|
|
2023-10-30 19:52:45 +00:00
|
|
|
volumes:
|
|
|
|
ollama: {}
|
2024-02-17 07:30:38 +00:00
|
|
|
open-webui: {}
|