-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (49 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ports:
- "11434:11434"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:11434"]
# interval: 3s
# timeout: 1s
# retries: 2
# start_period: 12s
# environment:
# - OLLAMA_HOST=0.0.0.0
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
volumes:
- open-webui:/app/backend/data
depends_on:
- model_loader
ports:
- 3000:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
model_loader:
build:
context: .
dockerfile: Dockerfile
command: >
sh -c '
curl http://ollama:11434/api/pull -d '\''{"name": "${LOCAL_LLM}"}'\''
'
depends_on:
- ollama
restart: "no"
volumes:
ollama: {}
open-webui: {}