-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.08 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.6'
services:
ollama:
image: ollama/ollama:latest
volumes:
- /ollama/models:/home/models
environment:
- OLLAMA_MODELS=/home/models
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
chroma:
image: chromadb/chroma:0.5.1.dev111
volumes:
- index_data:/chroma/.chroma/index
ports:
- 8000:8000
networks:
- net
nvidia:
image: nvidia/cuda:12.3.1-base-ubuntu20.04
command: nvidia-smi
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ui:
build: ./app
ports:
- 8080:8080
volumes:
- ./app:/app
depends_on:
- nvidia
- ollama
- chroma
environment:
- MODEL=llama3
- EMBEDDINGS_MODEL_NAME=all-MiniLM-L6-v2
- TARGET_SOURCE_CHUNKS=5
volumes:
index_data:
networks:
net: