-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
189 lines (177 loc) · 3.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
189 lines (177 loc) · 3.88 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
services:
backend:
build:
context: .
dockerfile: Dockerfile
image: prism:latest
container_name: prism-backend
command: >
uvicorn backend.main:app
--host 0.0.0.0
--port 8000
--reload
ports:
- "8000:8000"
env_file:
- .env
volumes:
- .:/app
# - ./data:/app/data
depends_on:
- postgres
- milvus
- ollama
networks:
- prism-network
frontend:
build:
context: .
dockerfile: Dockerfile
image: prism:latest
container_name: prism-frontend
command: >
streamlit run frontend/app.py
--server.address=0.0.0.0
--server.port=8501
ports:
- "8501:8501"
environment:
PYTHONPATH: /app
env_file:
- .env
volumes:
- .:/app
- ./data:/app/data
depends_on:
- backend
networks:
- prism-network
postgres:
image: postgres:17
container_name: prism-postgres
env_file:
- .env
ports:
- "5432:5432"
volumes:
# - ./data/postgres:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data
networks:
- prism-network
etcd:
image: quay.io/coreos/etcd:v3.5.25
container_name: prism-etcd
environment:
ETCD_AUTO_COMPACTION_MODE: revision
ETCD_AUTO_COMPACTION_RETENTION: 1000
ETCD_QUOTA_BACKEND_BYTES: 4294967296
ETCD_SNAPSHOT_COUNT: 50000
command: >
etcd
--advertise-client-urls=http://etcd:2379
--listen-client-urls=http://0.0.0.0:2379
--data-dir=/etcd
volumes:
- ./data/etcd:/etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3
networks:
- prism-network
minio:
image: minio/minio:RELEASE.2024-12-18T13-15-44Z
container_name: prism-minio
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
command: minio server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data/minio:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- prism-network
milvus:
image: milvusdb/milvus:v2.6.13
container_name: prism-milvus
command: ["milvus", "run", "standalone"]
environment:
ETCD_ENDPOINTS: etcd:2379
MINIO_ADDRESS: minio:9000
MQ_TYPE: woodpecker
ports:
- "19530:19530"
- "9091:9091"
volumes:
- ./data/milvus:/var/lib/milvus
depends_on:
- etcd
- minio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
start_period: 90s
timeout: 20s
retries: 3
networks:
- prism-network
cloudbeaver:
image: dbeaver/cloudbeaver:25.1.0
container_name: prism-cloudbeaver
ports:
- "8978:8978"
volumes:
- ./data/cloudbeaver:/opt/cloudbeaver/workspace
depends_on:
- postgres
networks:
- prism-network
attu:
image: zilliz/attu:v2.6.5
container_name: prism-attu
ports:
- "3000:3000"
environment:
MILVUS_URL: milvus:19530
depends_on:
- milvus
networks:
- prism-network
ollama:
image: ollama/ollama
container_name: prism-ollama
ports:
- "11434:11434"
volumes:
- ./data/ollama:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
networks:
- prism-network
dozzle:
image: amir20/dozzle:v8.14.7
container_name: prism-dozzle
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- prism-network
networks:
prism-network:
driver: bridge
volumes:
postgres_data: