-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.13 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
services:
ollama:
image: ollama/ollama:0.5.8-rc1rocm-rc1rocm
ports:
- 11434:11434
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ollama list || exit 1
interval: 10s
timeout: 30s
retries: 5
start_period: 10s
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
open-webui:
image: ghcr.io/open-webui/open-webui:main
environment:
- OLLAMA_API_BASE_URL=http://ollama:11434/api
ports:
- 80:8080
volumes:
- open_webui_data:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
ollama-pull--mistral:
image: curlimages/curl:8.6.0
command: >-
http://ollama:11434/api/pull -d '{"name": "mistral-nemo"}'
depends_on:
ollama:
condition: service_healthy
ollama-pull--deepseek-r1-8b:
image: curlimages/curl:8.6.0
command: >-
http://ollama:11434/api/pull -d '{"name": "deepseek-r1:8b"}'
depends_on:
ollama:
condition: service_healthy
volumes:
ollama_data:
open_webui_data: