-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.gpu.yml
More file actions
97 lines (89 loc) · 1.89 KB
/
Copy pathdocker-compose.gpu.yml
File metadata and controls
97 lines (89 loc) · 1.89 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.8'
services:
ollama:
image: ollama/ollama
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ollama:/root/.ollama
ports:
- "11435:11434"
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.27.6
ports:
- 8080:8080
- 50051:50051
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
ENABLE_API_BASED_MODULES: 'true'
CLUSTER_HOSTNAME: 'node1'
backend:
build:
context: ./backend
dockerfile: Backend.gpu.dockerfile
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
env_file:
- ./backend/.env
environment:
- PYTHONUNBUFFERED=1
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./backend:/app
- ./data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "5000:5000"
depends_on:
- ollama
- milvus
frontend:
build:
context: ./frontend/rag-ui
ports:
- "3000:3000"
volumes:
- ./frontend/rag-ui:/app
environment:
- CHOKIDAR_USEPOLLING=true
milvus:
image: milvusdb/milvus:latest
container_name: milvus-standalone
environment:
- TZ=UTC
ports:
- "19530:19530" # gRPC port
- "9091:9091" # REST API
volumes:
- milvus-data:/var/lib/milvus
volumes:
index_data:
ollama:
milvus-data:
weaviate_data: