-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
102 lines (93 loc) · 2.85 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
version: '3'
services:
generator:
build: ./generator
environment:
KAFKA_BROKER_URL: broker:9092
RAW_TRANSACTIONS_TOPIC: queueing.raw.transactions
TRANSACTIONS_PER_SECOND: 1000
REQUEST_INTERVAL: 2
SOURCE_URL: https://etherscan.io/txsPending
# SOURCE_URL: wss://mainnet.infura.io/ws/a699fa2391894c5799607f10f8b89ab3
detector:
build: ./detector
environment:
KAFKA_BROKER_URL: broker:9092
RAW_TRANSACTIONS_TOPIC: queueing.raw.transactions
TRANSACTIONS_TOPIC: streaming.transactions
generator_block:
build: ./generator_block
environment:
KAFKA_BROKER_URL: broker:9092
# KAFKA_LOG4J_LOGGERS : kafka.controller=WARN, kafka.foo.bar=DEBUG
# KAFKA_LOG4J_ROOT_LOGLEVEL : WARN
# KAFKA_TOOLS_LOG4J_LOGLEVEL: ERROR
RAW_BLOCKS_TOPIC: queueing.raw.blocks
TRANSACTIONS_PER_SECOND: 1000
REQUEST_INTERVAL: 1
NUMBER_OF_CONFIRMATIONS: 12
SOURCE_URL: wss://mainnet.infura.io/ws
detector_block:
build: ./detector_block
environment:
KAFKA_BROKER_URL: broker:9092
RAW_BLOCKS_TOPIC: queueing.raw.blocks
TRANSACTIONS_TOPIC: streaming.transactions
# TRANSACTIONS_BLOCKTIME_TOPIC: streaming.blocktime.transactions
TRANSACTIONS_BLOCK_TOPIC: queueing.blocktime.blocks
SOURCE_BLOCKDETAILS_URL: wss://mainnet.infura.io/ws/a699fa2391894c5799607f10f8b89ab3
mongodb:
image: mongo
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: transactions3
volumes:
- ./data/db:/data/db
detector_summary:
build: ./detector_summary
environment:
KAFKA_BROKER_URL: broker:9092
TRANSACTIONS_TOPIC: streaming.transactions
TRANSACTIONS_SUMMARY_TOPIC: queueing.summary.transactions
MONGO_INITDB_DATABASE: transactions3
depends_on:
- mongodb
receiver_summary:
build: ./receiver_summary
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
TRANSACTIONS_SUMMARY_TOPIC: queueing.summary.transactions
MONGO_INITDB_DATABASE: transactions3
# URL: https://etherscan.io/tx/
URL: wss://mainnet.infura.io/ws/a699fa2391894c5799607f10f8b89ab3
BATCH_INTERVAL: 1
depends_on:
- mongodb
receiver_block_time:
build: ./receiver_block_time
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
TRANSACTIONS_BLOCK_TOPIC: queueing.blocktime.blocks
MONGO_INITDB_DATABASE: transactions3
NUMBER_OF_CONFIRMATIONS: 12
BATCH_INTERVAL: 1
depends_on:
- mongodb
web:
build: ./web
environment:
BATCH_INTERVAL: 10
MONGO_INITDB_DATABASE: transactions3
ports:
- 5000:5000
depends_on:
- mongodb
volumes:
- ./test/:/data/test
networks:
default:
external:
name: kafka-network