2023-12-24 01:33:15 +08:00
|
|
|
version: '3.8'
|
2023-10-31 03:52:45 +08: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 15:30:38 +08:00
|
|
|
open-webui:
|
2023-10-31 03:52:45 +08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2024-03-07 03:44:00 +08:00
|
|
|
OLLAMA_BASE_URL: '/ollama'
|
2023-10-31 03:52:45 +08:00
|
|
|
dockerfile: Dockerfile
|
2024-02-17 15:30:38 +08:00
|
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
|
|
container_name: open-webui
|
2023-12-27 09:36:06 +08:00
|
|
|
volumes:
|
2024-02-17 15:30:38 +08:00
|
|
|
- open-webui:/app/backend/data
|
2023-11-18 02:38:29 +08:00
|
|
|
depends_on:
|
|
|
|
- ollama
|
2023-10-31 03:52:45 +08:00
|
|
|
ports:
|
2024-02-25 20:49:04 +08:00
|
|
|
- ${OPEN_WEBUI_PORT-3000}:8080
|
2023-11-18 02:38:29 +08:00
|
|
|
environment:
|
2024-03-07 03:44:00 +08:00
|
|
|
- 'OLLAMA_BASE_URL=http://ollama:11434'
|
2024-02-02 03:40:59 +08:00
|
|
|
- 'WEBUI_SECRET_KEY='
|
2023-11-15 08:42:10 +08:00
|
|
|
extra_hosts:
|
2023-11-18 02:38:29 +08:00
|
|
|
- host.docker.internal:host-gateway
|
2023-11-15 08:42:10 +08:00
|
|
|
restart: unless-stopped
|
2023-10-31 03:52:45 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
ollama: {}
|
2024-02-17 15:30:38 +08:00
|
|
|
open-webui: {}
|