open-webui/docker-compose.yaml
2024-05-15 11:10:00 -04:00

48 lines
1.1 KiB
YAML

services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
open-webui:
build:
context: .
args:
OLLAMA_BASE_URL: '/ollama'
dockerfile: Dockerfile
image: ghcr.io/open-webui/open-webui:dev
container_name: open-webui
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
- 'OPENAI_API_KEY=${OPENAI_API_KEY}'
- 'LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}'
- 'LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
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
volumes:
ollama: {}
open-webui: {}