open-webui/docker-compose.yaml

37 lines
762 B
YAML
Raw Normal View History

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
2024-02-17 07:30:38 +00:00
open-webui:
2023-10-30 19:52:45 +00:00
build:
context: .
args:
OLLAMA_API_BASE_URL: '/ollama/api'
2023-10-30 19:52:45 +00:00
dockerfile: Dockerfile
2024-02-17 07:30:38 +00:00
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
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:
- ${OPEN_WEBUI_PORT-3000}:8080
2023-11-17 18:38:29 +00:00
environment:
- 'OLLAMA_API_BASE_URL=http://ollama:11434/api'
- 'WEBUI_SECRET_KEY='
extra_hosts:
2023-11-17 18:38:29 +00:00
- host.docker.internal:host-gateway
restart: unless-stopped
2023-10-30 19:52:45 +00:00
volumes:
ollama: {}
2024-02-17 07:30:38 +00:00
open-webui: {}