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