This repository was archived by the owner on Aug 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdocker-compose.yml
484 lines (475 loc) · 16.2 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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
version: "3"
services:
corebuild:
image: corebuild
build:
context: ./
dockerfile: Dockerfile.composebase
redis:
image: redis:alpine
ports:
- "6379"
deploy:
replicas: 1
restart_policy:
condition: on-failure
postgres:
image: postgres
ports:
- "5432"
environment:
POSTGRES_PASSWORD: secret
deploy:
replicas: 1
restart_policy:
condition: on-failure
ethnode:
build:
context: ./
dockerfile: Dockerfile.testrpc
ports:
- "18545:8545"
deploy:
replicas: 1
restart_policy:
condition: on-failure
# command: ["testrpc", "--networkId", "50", "--debug", "-p", "8545", "--db", "/testrpcdb", "-m", "concert load couple harbor equip island argue ramp clarify fence smart topic"]
ingest:
build:
context: ./
dockerfile: Dockerfile.ingest
image: "openrelay/ingest:${TAG:-latest}"
ports:
- "8081:8080"
command: ["/ingest", "postgres://ingest${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "${REDIS_HOST:-redis:6379}", "C22d5b2951DB72B44CFb8089bb8CD374A3c354eA", "queue://ingest"]
depends_on:
- redis
- corebuild
environment:
POSTGRES_PASSWORD: password
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
exchangesplitter:
build:
context: ./
dockerfile: Dockerfile.exchangesplitter
image: "openrelay/exchangesplitter:${TAG:-latest}"
command: ["/exchangesplitter", "${REDIS_HOST:-redis:6379}", "queue://ingest", "testrpc"]
depends_on:
- redis
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
fillupdate:
build:
context: ./
dockerfile: Dockerfile.fillupdate
image: "openrelay/fillupdate:${TAG:-latest}"
command: ["/fillupdate", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "topic://ordersfilled", "file:///bloom/data/testdata", "queue://fillupdate=>queue://fundcheck"]
volumes:
- bloomdata:/bloom/data
depends_on:
- redis
- ethnode
- corebuild
deploy:
replicas: 1
restart_policy:
condition: on-failure
fundcheckrelay:
build:
context: ./
dockerfile: Dockerfile.fundcheckrelay
image: "openrelay/fundcheckrelay:${TAG:-latest}"
command: ["/fundcheckrelay", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://fundcheck=>queue://poolfilter", "--invalidation=topic://newblocks"]
depends_on:
- redis
- ethnode
- corebuild
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: on-failure
fillmonitor:
build:
context: ./
dockerfile: Dockerfile.fillmonitorng
image: "openrelay/fillmonitorng:${TAG:-latest}"
command: ["/fillmonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://fillblocks", "queue://ordersfilled", "file:///bloom/data/testdata", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
volumes:
- bloomdata:/bloom/data
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
multisigmonitor:
build:
context: ./
dockerfile: Dockerfile.multisigmonitor
image: "openrelay/multisigmonitor:${TAG:-latest}"
command: ["/multisigmonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://multisigblocks", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
affiliatemonitor:
build:
context: ./
dockerfile: Dockerfile.affiliatemonitor
image: "openrelay/affiliatemonitor:${TAG:-latest}"
command: ["/affiliatemonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://affiliateblocks", "0x4112f5fc3f737e813ca8cc1a48d1da3dc8719435"]
depends_on:
- redis
- ethnode
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
pgfillindexer:
build:
context: ./
dockerfile: Dockerfile.pgfillindexer
image: "openrelay/pgfillindexer:${TAG:-latest}"
command: ["/fillindexer", "${REDIS_HOST:-redis:6379}", "queue://pgordersfilled", "postgres://indexer${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "topic://instant-broadcast"]
depends_on:
- redis
- postgres
- corebuild
environment:
POSTGRES_PASSWORD: password
restart: on-failure
initialize:
build:
context: ./
dockerfile: Dockerfile.initialize
image: "openrelay/initialize:${TAG:-latest}"
command: ["/initialize", "${REDIS_HOST:-redis:6379}", "${ZRX_FEE:-500000000000000000}", "${RELAY_ADDRESS:-C22d5b2951DB72B44CFb8089bb8CD374A3c354eA}"]
depends_on:
- redis
- corebuild
contractinit:
build:
context: ./
dockerfile: Dockerfile.testinit
command: ["/project/setup.sh", "redis://${REDIS_HOST:-redis:6379}"]
environment:
ETHEREUM_URL: "${ETHEREUM_NODE:-http://ethnode:8545}"
depends_on:
- redis
- corebuild
entrypoint:
build:
context: ./
dockerfile: Dockerfile.testinit
volumes:
- "./js:/project"
command: ["node", "/project/hang.js"]
pgindexer:
build:
context: ./
dockerfile: Dockerfile.pgindexer
image: "openrelay/pgindexer:${TAG:-latest}"
environment:
POSTGRES_PASSWORD: password
command: ["/indexer", "${REDIS_HOST:-redis:6379}", "queue://pgindexer", "postgres://indexer${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "topic://instant-broadcast"]
depends_on:
- postgres
- redis
- corebuild
restart: on-failure
pgautomigrate:
build:
context: ./
dockerfile: Dockerfile.automigrate
image: "openrelay/automigrate:${TAG:-latest}"
environment:
POSTGRES_PASSWORD: secret
INDEX_PASSWORD: password
SEARCH_PASSWORD: password
SPENDRECORDER_PASSWORD: password
CANCEL_FILTER_PASSWORD: password
CANCEL_INDEX_PASSWORD: password
POOL_FILTER_PASSWORD: password
TOS_PASSWORD: password
TOS_MGR_PASSWORD: password
INGEST_PASSWORD: password
METADATA_PASSWORD: password
WS_PASSWORD: password
command:
- "/automigrate"
- "postgres://postgres${POSTGRES_HOST:-postgres}"
- "env://POSTGRES_PASSWORD"
- "indexer;env://INDEX_PASSWORD;orderv2.SELECT,orderv2.INSERT,orderv2.UPDATE"
- "spendrecorder;env://SPENDRECORDER_PASSWORD;orderv2.SELECT,orderv2.INSERT,orderv2.UPDATE"
- "search;env://SEARCH_PASSWORD;orderv2.SELECT,exchanges.SELECT,pools.SELECT,asset_metadata.SELECT,asset_attributes.SELECT"
- "cancelfilter;env://CANCEL_FILTER_PASSWORD;cancellations.SELECT"
- "poolfilter;env://POOL_FILTER_PASSWORD;pools.SELECT,exchanges.SELECT"
- "ws;env://WS_PASSWORD;pools.SELECT,exchanges.SELECT"
- "metadata;env://METADATA_PASSWORD;asset_metadata.SELECT,asset_metadata.INSERT,asset_metadata.UPDATE,asset_attributes.SELECT,asset_attributes.INSERT,asset_attributes.UPDATE"
- "cancelindexer;env://CANCEL_INDEX_PASSWORD;cancellations.SELECT,cancellations.INSERT,cancellations.UPDATE,orderv2.SELECT,orderv2.INSERT,orderv2.UPDATE"
- "tos;env://TOS_PASSWORD;terms.SELECT,terms_sigs.SELECT,terms_sigs.INSERT,hash_masks.SELECT,hash_masks.INSERT"
- "ingest;env://INGEST_PASSWORD;terms.SELECT,terms_sigs.SELECT,terms_sigs.INSERT,pools.SELECT,exchanges.SELECT"
- "tosmgr;env://TOS_MGR_PASSWORD;terms.SELECT,terms.INSERT,terms.UPDATE,terms_sigs.SELECT,terms_sigs.INSERT,terms_sigs.UPDATE,hash_masks.SELECT,hash_masks.INSERT,hash_masks.DELETE"
depends_on:
- postgres
- corebuild
restart: on-failure
pgapi:
build:
context: ./
dockerfile: Dockerfile.pgsearchapi
image: "openrelay/pgsearchapi:${TAG:-latest}"
ports:
- "8082:8080"
command: ["/searchapi", "${REDIS_HOST:-redis:6379}", "topic://newblocks", "postgres://search${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- corebuild
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: on-failure
termsapi:
build:
context: ./
dockerfile: Dockerfile.termsapi
image: "openrelay/termsapi:${TAG:-latest}"
ports:
- "8083:8080"
command: ["/terms", "postgres://tos${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- corebuild
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: on-failure
simplerelay:
build:
context: ./
dockerfile: Dockerfile.simplerelay
image: "openrelay/simplerelay:${TAG:-latest}"
command: ["/simplerelay", "${REDIS_HOST:-redis:6379}", "queue://ordersfilled=>queue://pgordersfilled=>topic://ordersfilled", "queue://newblocks=>queue://allowanceblocks=>queue://erc721approvalblocks=>queue://spendblocks=>topic://newblocks=>queue://fillblocks=>queue://canceluptoblocks=>queue://affiliateblocks"]
depends_on:
- redis
- corebuild
deploy:
replicas: 1
restart_policy:
condition: on-failure
blockmonitorng:
build:
context: ./
dockerfile: Dockerfile.blockmonitorng
image: "openrelay/blockmonitorng:${TAG:-latest}"
command: ["/blockmonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://newblocks"]
environment:
ETHEREUM_URL: "${ETHEREUM_NODE:-http://ethnode:8545}"
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
allowancemonitor:
build:
context: ./
dockerfile: Dockerfile.allowancemonitor
image: "openrelay/allowancemonitor:${TAG:-latest}"
command: ["/allowancemonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://allowanceblocks", "queue://recordspend", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
erc721approvalmonitor:
build:
context: ./
dockerfile: Dockerfile.erc721approvalmonitor
image: "openrelay/erc721approvalmonitor:${TAG:-latest}"
command: ["/erc721approvalmonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://erc721approvalblocks", "queue://recordspend", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
spendmonitor:
build:
context: ./
dockerfile: Dockerfile.spendmonitor
image: "openrelay/spendmonitor:${TAG:-latest}"
command: ["/spendmonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://spendblocks", "queue://recordspend", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
spendrecorder:
build:
context: ./
dockerfile: Dockerfile.spendrecorder
image: "openrelay/spendrecorder:${TAG:-latest}"
command: ["/spendrecorder", "${REDIS_HOST:-redis:6379}", "queue://recordspend", "postgres://spendrecorder${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "topic://instant-broadcast"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
websockets:
build:
context: ./
dockerfile: Dockerfile.websockets
image: "openrelay/websockets:${TAG:-latest}"
command: ["/websockets", "${REDIS_HOST:-redis:6379}", "topic://instant-broadcast", "postgres://ws${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD"]
environment:
POSTGRES_PASSWORD: password
ports:
- "8084:8080"
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
canceluptomonitor:
build:
context: ./
dockerfile: Dockerfile.canceluptomonitor
image: "openrelay/canceluptomonitor:${TAG:-latest}"
command: ["/canceluptomonitor", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://canceluptoblocks", "queue://recordcancel", "0x48bacb9266a570d521063ef5dd96e61686dbe788"]
depends_on:
- redis
- ethnode
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
canceluptofilter:
build:
context: ./
dockerfile: Dockerfile.canceluptofilter
image: "openrelay/canceluptofilter:${TAG:-latest}"
command: ["/canceluptofilter", "${REDIS_HOST:-redis:6379}", "postgres://cancelfilter${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "queue://0x48bacb9266a570d521063ef5dd96e61686dbe788-testrpc=>queue://fillupdate"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- ethnode
- postgres
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
canceluptoindexer:
build:
context: ./
dockerfile: Dockerfile.canceluptoindexer
image: "openrelay/canceluptoindexer:${TAG:-latest}"
command: ["/canceluptoindexer", "${REDIS_HOST:-redis:6379}", "queue://recordcancel", "postgres://cancelindexer${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "topic://instant-broadcast"]
environment:
POSTGRES_PASSWORD: password
restart: on-failure
poolfilter:
build:
context: ./
dockerfile: Dockerfile.poolfilter
image: "openrelay/poolfilter:${TAG:-latest}"
command: ["/poolfilter", "postgres://poolfilter${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "${REDIS_HOST:-redis:6379}", "${ETHEREUM_NODE:-http://ethnode:8545}", "queue://poolfilter=>queue://pgindexer=>queue://metadataindexer"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- ethnode
- postgres
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
metadataindexer:
build:
context: ./
dockerfile: Dockerfile.metadataindexer
image: "openrelay/metadataindexer:${TAG:-latest}"
command: ["/metadataindexer", "${REDIS_HOST:-redis:6379}", "queue://metadataindexer", "postgres://metadata${POSTGRES_HOST:-postgres}", "env://POSTGRES_PASSWORD", "${ETHEREUM_NODE:-http://ethnode:8545}"]
environment:
POSTGRES_PASSWORD: password
depends_on:
- redis
- ethnode
- postgres
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
queuemonitor:
build:
context: ./
dockerfile: Dockerfile.queuemonitor
image: "openrelay/queuemonitor:${TAG:-latest}"
command: ["/queuemonitor", "${REDIS_HOST:-redis:6379}", "1", "newblocks-ropsten", "ordersfilled", "pgordersfilled", "newblocks", "released-ropsten", "fundcheck-ropsten", "allowanceblocks", "recheck-ropsten", "fillupdate-ropsten", "indexer", "preindexer", "spendblocks-ropsten", "recordspend", "ordersfilled-ropsten", "delay2-ropsten", "released", "fundcheck", "allowanceblocks-ropsten", "recheck2-ropsten", "fillupdate", "fillblocks-ropsten", "spendblocks", "recheck2", "delay1", "delay2", "ingest", "fillblocks", "pgindexer", "delay1-ropsten", "multisigblocks", "recheck", "canceluptoblocks", "recordcancel", "0x48bacb9266a570d521063ef5dd96e61686dbe788-testrpc"]
depends_on:
- redis
- corebuild
restart: on-failure
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
bloomdata: