forked from SciPhi-AI/R2R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.full.yaml
More file actions
215 lines (200 loc) · 5.32 KB
/
Copy pathcompose.full.yaml
File metadata and controls
215 lines (200 loc) · 5.32 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
volumes:
hatchet_certs:
name: hatchet_certs
hatchet_config:
name: hatchet_config
hatchet_api_key:
name: hatchet_api_key
hatchet_rabbitmq_data:
name: hatchet_rabbitmq_data
hatchet_rabbitmq_conf:
name: hatchet_rabbitmq_conf
hatchet_postgres_data:
name: hatchet_postgres_data
minio_data:
name: minio_data
postgres_data:
name: postgres_data
services:
postgres:
image: pgvector/pgvector:pg16
profiles: [postgres]
env_file:
- ./env/postgres.env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: on-failure
command: >
postgres
-c max_connections=1024
minio:
image: minio/minio
profiles: [minio]
env_file:
- ./env/minio.env
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 5
restart: on-failure
command: server /data --console-address ":9001"
hatchet-postgres:
image: postgres:latest
env_file:
- ./env/hatchet.env
volumes:
- hatchet_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hatchet_user -d hatchet"]
interval: 10s
timeout: 5s
retries: 5
hatchet-rabbitmq:
image: "rabbitmq:3-management"
hostname: "hatchet-rabbitmq"
ports:
- "5673:5672"
- "15673:15672"
env_file:
- ./env/hatchet.env
volumes:
- hatchet_rabbitmq_data:/var/lib/rabbitmq
- hatchet_rabbitmq_conf:/etc/rabbitmq/rabbitmq.conf
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 10s
retries: 5
hatchet-create-db:
image: postgres:latest
command: sh /scripts/create-hatchet-db.sh
volumes:
- ./scripts:/scripts
env_file:
- ./env/hatchet.env
hatchet-migration:
image: ghcr.io/hatchet-dev/hatchet/hatchet-migrate:v0.53.15
env_file:
- ./env/hatchet.env
depends_on:
hatchet-create-db:
condition: service_completed_successfully
hatchet-setup-config:
image: ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15
command: /hatchet/hatchet-admin quickstart --skip certs --generated-config-dir /hatchet/config --overwrite=false
env_file:
- ./env/hatchet.env
volumes:
- hatchet_certs:/hatchet/certs
- hatchet_config:/hatchet/config
depends_on:
hatchet-migration:
condition: service_completed_successfully
hatchet-rabbitmq:
condition: service_healthy
hatchet-engine:
image: ghcr.io/hatchet-dev/hatchet/hatchet-engine:v0.53.15
command: /hatchet/hatchet-engine --config /hatchet/config
restart: on-failure
depends_on:
hatchet-setup-config:
condition: service_completed_successfully
ports:
- "7077:7077"
env_file:
- ./env/hatchet.env
volumes:
- hatchet_certs:/hatchet/certs
- hatchet_config:/hatchet/config
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8733/live"]
interval: 10s
timeout: 5s
retries: 5
hatchet-dashboard:
image: ghcr.io/hatchet-dev/hatchet/hatchet-dashboard:v0.53.15
command: sh ./entrypoint.sh --config /hatchet/config
restart: on-failure
depends_on:
hatchet-setup-config:
condition: service_completed_successfully
env_file:
- ./env/hatchet.env
volumes:
- hatchet_certs:/hatchet/certs
- hatchet_config:/hatchet/config
ports:
- "7274:80"
setup-token:
image: ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15
command: sh /scripts/setup-token.sh
volumes:
- ./scripts:/scripts
- hatchet_certs:/hatchet/certs
- hatchet_config:/hatchet/config
- hatchet_api_key:/hatchet_api_key
depends_on:
hatchet-setup-config:
condition: service_completed_successfully
unstructured:
image: ragtoriches/unst-prod
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7275/health"]
interval: 10s
timeout: 5s
retries: 5
graph_clustering:
image: ragtoriches/cluster-prod
ports:
- "7276:7276"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7276/health"]
interval: 10s
timeout: 5s
retries: 5
r2r:
image: sciphiai/r2r:latest
ports:
- "7272:7272"
env_file:
- ./env/r2r-full.env
command: sh /scripts/start-r2r.sh
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7272/v3/health"]
interval: 6s
timeout: 5s
retries: 5
restart: on-failure
volumes:
- ./user_configs:/app/user_configs
- ./user_tools:/app/user_tools
- hatchet_api_key:/hatchet_api_key:ro
- ./scripts:/scripts
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
setup-token:
condition: service_completed_successfully
unstructured:
condition: service_healthy
graph_clustering:
condition: service_healthy
r2r-dashboard:
image: sciphiai/r2r-dashboard:1.0.3
env_file:
- ./env/r2r-dashboard.env
ports:
- "7273:3000"