-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (42 loc) · 894 Bytes
/
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
version: "3.8"
services:
ollama:
image: ollama/ollama:0.1.24
expose:
- 11434/tcp
healthcheck:
test: ollama --version || exit 1
command: serve
restart: on-failure
volumes:
- ollama:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['all']
capabilities: [gpu]
llava:
build:
context: ./llava
env_file:
- .env
restart: on-failure
depends_on:
ollama:
condition: service_healthy
curl:
condition: service_completed_successfully
curl:
image: curlimages/curl:latest
env_file:
- .env
command: >
/bin/sh -c "curl -X POST $$OLLAMA_BASE_URL/api/pull
-d \"{\\\"name\\\": \\\"$$VISION_MODEL\\\"}\""
restart: on-failure
depends_on:
- ollama
volumes:
ollama: