-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
659 lines (657 loc) · 21.3 KB
/
docker-compose.yml
File metadata and controls
659 lines (657 loc) · 21.3 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
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
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
---
version: "3.8"
services:
cassandra:
container_name: streamr-dev-cassandra
image: streamr/cassandra:v0.0.1
init: true
networks:
- streamr-network
ports:
- "7000:7000"
- "7001:7001"
- "7199:7199"
- "9042:9042"
- "9160:9160"
volumes:
- type: volume
source: data-cassandra
target: /var/lib/cassandra
volume:
nocopy: true
restart: unless-stopped
init-keyspace:
container_name: streamr-dev-init-keyspace
image: cassandra:3.11.5
init: true
networks:
- streamr-network
command: bash -c "sleep 5 && cqlsh cassandra -f /init_scripts/keyspace.cql && echo keyspace initialized"
restart: on-failure # exits on success
volumes:
- type: bind
source: ./cassandra_init_scripts
target: /init_scripts
read_only: true
bind:
propagation: rprivate
depends_on:
- cassandra
mysql:
container_name: streamr-dev-mysql
image: streamr/mysql:v0.0.1
init: true
networks:
- streamr-network
ports:
- "3306:3306"
volumes:
- type: volume
source: data-mysql
target: /var/lib/mysql
volume:
nocopy: true
- type: bind
source: ./mysql-files
target: /var/lib/mysql-files
read_only: false
bind:
propagation: rprivate
- type: bind
source: ./mysql_init_scripts
target: /docker-entrypoint-initdb.d
read_only: true
bind:
propagation: rprivate
- type: bind
source: ./custom-mysql-settings.cnf
target: /etc/mysql/conf.d/custom-mysql-settings.cnf
read_only: true
bind:
propagation: rprivate
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: password
redis:
container_name: streamr-dev-redis
image: streamr/redis:v0.0.1
networks:
- streamr-network
ports:
- "6379:6379"
restart: unless-stopped
volumes:
- type: volume
source: data-bridge-data-redis
target: /data
volume:
nocopy: true
smtp:
container_name: streamr-dev-smtp
image: streamr/smtp:v0.0.1
networks:
- streamr-network
ports:
- "25:25"
nginx:
container_name: streamr-dev-nginx
image: streamr/nginx:v0.0.3
networks:
- streamr-network
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: ./custom-nginx-reverse-proxy.conf
target: /etc/nginx/nginx.conf
read_only: true
bind:
propagation: rprivate
- type: bind
source: ./certs
target: /etc/nginx/mounted-certs
read_only: true
bind:
propagation: rprivate
tracker-1:
container_name: streamr-dev-tracker-1
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "30301:30301"
volumes:
- type: bind
source: ./certs
target: /certs
read_only: true
bind:
propagation: rprivate
command: node tracker.js 0xe5abc5ee43b8830e7b0f98d03efff5d6cae574d52a43204528eab7b52cd6408d tracker-1 --port=30301 ${TRACKER_ARGS}
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--insecure", "${STREAMR_BASE_URL}:30301/topology/"]
interval: 30s
timeout: 10s
retries: 20
tracker-2:
container_name: streamr-dev-tracker-2
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "30302:30302"
volumes:
- type: bind
source: ./certs
target: /certs
read_only: true
bind:
propagation: rprivate
command: node tracker.js 0x96de9d06f9e409119a2cd9b57dfc326f66d953a0418f3937b92c8930f930893c tracker-2 --port=30302 ${TRACKER_ARGS}
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--insecure", "${STREAMR_BASE_URL}:30302/topology/"]
interval: 30s
timeout: 10s
retries: 20
tracker-3:
container_name: streamr-dev-tracker-3
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "30303:30303"
volumes:
- type: bind
source: ./certs
target: /certs
read_only: true
bind:
propagation: rprivate
command: node tracker.js 0x6117b7a7cb8f3c8d40e3b7e87823c11af7f401515bc4fdf2bfdda70f1b833027 tracker-3 --port=30303 ${TRACKER_ARGS}
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--insecure", "${STREAMR_BASE_URL}:30303/topology/"]
interval: 30s
timeout: 10s
retries: 20
broker-node-storage-1:
container_name: streamr-dev-broker-node-storage-1
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "8890:8890"
- "8891:8891"
- "9000:9000"
- "30315:30315"
depends_on:
- init-keyspace
- cassandra
- tracker-1
- tracker-2
- tracker-3
environment:
STREAMR_URL: "${STREAMR_BASE_URL}"
CASSANDRA_HOST: 10.200.10.1:9042
command: node bin/broker.js configs/docker-1.env.json
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost:8891/api/v1/volume"]
interval: 30s
timeout: 10s
retries: 20
broker-node-no-storage-1:
container_name: streamr-dev-broker-node-no-storage-1
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "8790:8790"
- "8791:8791"
- "9100:9100"
- "30316:30316"
depends_on:
- tracker-1
- tracker-2
- tracker-3
environment:
STREAMR_URL: "${STREAMR_BASE_URL}"
command: node bin/broker.js configs/docker-2.env.json
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost:8791/api/v1/volume"]
interval: 30s
timeout: 10s
retries: 20
broker-node-no-storage-2:
container_name: streamr-dev-broker-node-no-storage-2
image: streamr/broker-node:dev
init: true
networks:
- streamr-network
restart: unless-stopped
ports:
- "8690:8690"
- "8691:8691"
- "9200:9200"
- "30317:30317"
depends_on:
- tracker-1
- tracker-2
- tracker-3
environment:
STREAMR_URL: "${STREAMR_BASE_URL}"
command: node bin/broker.js configs/docker-3.env.json
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost:8691/api/v1/volume"]
interval: 30s
timeout: 10s
retries: 20
core-api:
container_name: streamr-dev-core-api
image: streamr/core-api:dev
networks:
- streamr-network
ports:
- "8081:8081"
depends_on:
- init-keyspace
- smtp
- mysql
- redis
- parity-node0
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost:8081/streamr-core/api/v1/products"]
interval: 30s
timeout: 10s
retries: 20
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_KEY: "${AWS_SECRET_ACCESS_KEY}"
FILEUPLOAD_S3_BUCKET: "${FILEUPLOAD_S3_BUCKET}"
STREAMR_URL: "${STREAMR_BASE_URL}"
HTTPS_API_SERVER: "${STREAMR_BASE_URL}/api/v1"
WS_SERVER: "${STREAMR_WS_URL}"
CPS_URL: "http://10.200.10.1:8085/dataunions/"
ethereum-watcher:
container_name: streamr-dev-ethereum-watcher
image: streamr/ethereum-watcher:dev
init: true
networks:
- streamr-network
restart: unless-stopped
depends_on:
- parity-node0
- core-api
environment:
STREAMR_API_URL: "${STREAMR_BASE_URL}/api/v1"
DEVOPS_KEY: "0x628acb12df34bb30a0b2f95ec2e6a743b386c5d4f63aa9f338bec6f613160e78"
NETWORK_ID: "8995"
MARKETPLACE_ADDRESS: "0xf1371c0f40528406dc4f4caf89924ea9da49e866"
ETHEREUM_SERVER_URL: "http://10.200.10.1:8545"
volumes:
- type: volume
source: data-ethereum-watcher
target: /app/logs
volume:
nocopy: true
healthcheck:
test: ["CMD", "echo"] # TODO: Health check
interval: 10s
timeout: 10s
retries: 60
data-union-server:
container_name: streamr-dev-data-union-server
image: streamr/data-union-server:dev
init: true
networks:
- streamr-network
ports:
- "8085:8085"
restart: unless-stopped
environment:
ETHEREUM_SERVER: http://10.200.10.1:8545
ETHEREUM_PRIVATE_KEY: 5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0
STREAMR_WS_URL: "${STREAMR_WS_URL}"
STREAMR_HTTP_URL: "${STREAMR_BASE_URL}/api/v1"
TOKEN_ADDRESS: "0xbaa81a0179015be47ad439566374f2bae098686f"
REMOTE_SECRETS: "false"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost:8085/dataunions"]
interval: 10s
timeout: 10s
retries: 60
platform:
container_name: streamr-dev-platform
image: streamr/platform:dev
networks:
- streamr-network
ports:
- "3333:80"
depends_on:
- core-api
- parity-node0
environment:
DATA_UNIONS: "on"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost"]
interval: 10s
timeout: 10s
retries: 60
network-explorer:
container_name: streamr-dev-network-explorer
image: streamr/network-explorer:dev
networks:
- streamr-network
ports:
- "3334:80"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "http://localhost"]
interval: 10s
timeout: 10s
retries: 60
stdin_open: true
parity-node0:
container_name: streamr-dev-parity-node0
environment:
CHAIN_ID: 0x2323
image: streamr/open-ethereum-poa-mainchain-preload1:dev
networks:
- streamr-network
ports:
- "8545:8540"
- "8450:8450"
- "30309:30309"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--header", "Content-Type: application/json", "--data", '[{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1},{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]', "http://localhost:8540/api/health"]
interval: 1m30s
timeout: 10s
retries: 3
command: --chain ./streamr-spec.json --config ./node0.toml
volumes:
- type: volume
source: data-parity-node0
target: /home/parity/parity_data
volume:
nocopy: true
parity-sidechain-node0:
container_name: streamr-dev-parity-sidechain-node0
environment:
CHAIN_ID: 0x2325
image: streamr/open-ethereum-poa-sidechain-preload1:dev
networks:
- streamr-network
ports:
- "8546:8540"
- "8451:8450"
- "30310:30309"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--header", "Content-Type: application/json", "--data", '[{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1},{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]', "http://localhost:8540/api/health"]
interval: 1m30s
timeout: 10s
retries: 3
command: --chain ./streamr-spec.json --config ./node0.toml
volumes:
- type: volume
source: data-parity-sidechain-node0
target: /home/parity/parity_data
volume:
nocopy: true
bridge-rabbitmq:
container_name: streamr-dev-bridge-rabbitmq
environment: ['RABBITMQ_NODENAME=node@bridge-rabbitmq']
hostname: bridge-rabbitmq
image: rabbitmq:3
networks:
- streamr-network
restart: unless-stopped
volumes:
- type: volume
source: data-bridge-data-rabbitmq
target: /var/lib/rabbitmq/mnesia
volume:
nocopy: true
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
bridge-request:
container_name: streamr-dev-bridge-request
image: poanetwork/tokenbridge-oracle:latest
networks:
- streamr-network
env_file:
- ./oracles.env
restart: unless-stopped
entrypoint: yarn watcher:signature-request
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
bridge-affirmation:
container_name: streamr-dev-bridge-affirmation
image: poanetwork/tokenbridge-oracle:latest
networks:
- streamr-network
env_file:
- ./oracles.env
restart: unless-stopped
entrypoint: yarn watcher:affirmation-request
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
bridge-senderhome:
container_name: streamr-dev-bridge-senderhome
image: poanetwork/tokenbridge-oracle:latest
init: true
networks:
- streamr-network
env_file:
- ./oracles.env
restart: unless-stopped
entrypoint: yarn sender:home
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
bridge-senderforeign:
container_name: streamr-dev-bridge-senderforeign
image: poanetwork/tokenbridge-oracle:latest
networks:
- streamr-network
env_file:
- ./oracles.env
restart: unless-stopped
entrypoint: yarn sender:foreign
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
bridge:
container_name: streamr-dev-bridge
image: tianon/true # dummy image that does nothing
networks:
- streamr-network
depends_on:
- bridge-senderforeign
- bridge-senderhome
- bridge-affirmation
- bridge-rabbitmq
- redis
- bridge-request
graph-node:
container_name: streamr-dev-thegraph-node
image: graphprotocol/graph-node
networks:
- streamr-network
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
depends_on:
- ipfs
- postgres
- parity-sidechain-node0
environment:
postgres_host: postgres
postgres_user: streamr
postgres_pass: let-me-in
postgres_db: streamr
ipfs: 'streamr-dev-ipfs:5001'
ethereum: 'xDai:http://streamr-dev-parity-sidechain-node0:8540'
RUST_LOG: info
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
graph-deploy-streamregistry-subgraph:
container_name: streamr-dev-graph-deploy-streamreg-subgraph
image: streamr/graph-deploy-streamregistry-subgraph:dev
networks:
- streamr-network
depends_on:
- graph-node
volumes:
- type: volume
source: data-graph-deploy
target: /firstrun
volume:
nocopy: true
graph-deploy-dataunion-subgraph:
container_name: streamr-dev-graph-deploy-dataunion-subgraph
image: streamr/graph-deploy-dataunion-subgraph:dev
networks:
- streamr-network
depends_on:
- graph-node
volumes:
- type: volume
source: data-graph-deploy-dataunion
target: /firstrun
volume:
nocopy: true
ipfs:
container_name: streamr-dev-ipfs
image: ipfs/go-ipfs:v0.4.23
networks:
- streamr-network
ports:
- '5001:5001'
volumes:
- type: volume
source: data-ipfs
target: /data/ipfs
volume:
nocopy: true
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
postgres:
container_name: streamr-dev-postgres
image: postgres
networks:
- streamr-network
ports:
- '5432:5432'
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: streamr
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: streamr
volumes:
- type: volume
source: data-postgres
target: /var/lib/postgresql/data
volume:
nocopy: true
- type: bind
source: ./postgres_init_scripts
target: /docker-entrypoint-initdb.d
read_only: true
bind:
propagation: rprivate
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
chainlink:
container_name: streamr-dev-chainlink-node
image: smartcontract/chainlink:0.10.5
networks:
- streamr-network
ports:
- '6688:6688'
command: ["local", "n", "-p", "/chainlink/.password", "-a", "/chainlink/.api"]
env_file:
- ./chainlink_config/.env_streamr_sidechain
volumes:
- type: bind
source: ./chainlink_config
target: /chainlink
bind:
propagation: rprivate
user: ${CURRENT_UID}
depends_on:
- parity-sidechain-node0
- postgres
- chainlink-external-adapter
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
chainlink-external-adapter:
container_name: streamr-dev-chainlink-adapter
image: streamr/chainlink-external-adapter:dev
networks:
- streamr-network
ports:
- 6691:8080
depends_on:
- parity-node0
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
networks:
streamr-network:
driver: bridge
volumes:
mysql_init_scripts:
mysql-files:
cassandra_init_scripts:
data-bridge-data-rabbitmq:
data-bridge-data-redis:
data-mysql:
data-cassandra:
data-parity-node0:
data-parity-sidechain-node0:
data-ethereum-watcher:
data-ipfs:
data-postgres:
data-graph-deploy:
data-graph-deploy-dataunion: