open-webui/docker-compose.yaml

35 lines
771 B
YAML
Raw Normal View History

2023-10-30 12:52:45 -07:00
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
2024-04-05 23:48:16 -04:00
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
2023-10-30 12:52:45 -07:00
2024-02-16 23:30:38 -08:00
open-webui:
2023-10-30 12:52:45 -07:00
build:
context: .
args:
2024-03-06 11:44:00 -08:00
OLLAMA_BASE_URL: '/ollama'
2023-10-30 12:52:45 -07:00
dockerfile: Dockerfile
2024-04-05 23:48:16 -04:00
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
2024-02-16 23:30:38 -08:00
container_name: open-webui
volumes:
2024-02-16 23:30:38 -08:00
- open-webui:/app/backend/data
2023-11-17 10:38:29 -08:00
depends_on:
- ollama
2023-10-30 12:52:45 -07:00
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
2023-11-17 10:38:29 -08:00
environment:
2024-03-06 11:44:00 -08:00
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
extra_hosts:
2023-11-17 10:38:29 -08:00
- host.docker.internal:host-gateway
restart: unless-stopped
2023-10-30 12:52:45 -07:00
volumes:
ollama: {}
2024-02-16 23:30:38 -08:00
open-webui: {}