-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
232 lines (215 loc) · 7.13 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
version: '2'
services:
zookeeper:
restart: always
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 22181:2181
kafka:
restart: always
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- 29092:29092
- 39092:39092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_INT://host.docker.internal:39092,PLAINTEXT_HOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,PLAINTEXT_INT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_NUM_PARTITIONS: 1
kowl:
image: quay.io/cloudhut/kowl:master
ports:
- 8080:8080
depends_on:
- kafka
environment:
KAFKA_BROKERS: kafka:9092
restart: always
kafka_admin:
image: hlebalbau/kafka-manager:stable
command:
- "-Dhttp.port=9005"
ports:
- 9002:9005
depends_on:
- kafka
- zookeeper
environment:
ZK_HOSTS: zookeeper:2181
redis:
image: redis:latest
ports:
- 6379:6379
rediscommander:
image: rediscommander/redis-commander:latest
ports:
- 8081:8081
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
ksqldb-server:
image: confluentinc/ksqldb-server:0.19.0
hostname: ksqldb-server
container_name: ksqldb-server
depends_on:
- kafka
ports:
- "8088:8088"
environment:
KSQL_LISTENERS: http://0.0.0.0:8088
KSQL_BOOTSTRAP_SERVERS: kafka:9092
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
KSQL_KSQL_INTERNAL_TOPIC_REPLICAS: 1
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_REPLICATION_FACTOR: 1
KSQL_KSQL_STREAMS_REPLICATION_FACTOR: 1
KSQL_KSQL_SINK_REPLICAS: 1
ksqldb-cli:
image: confluentinc/ksqldb-cli:0.19.0
container_name: ksqldb-cli
depends_on:
- kafka
- ksqldb-server
entrypoint: /bin/sh
tty: true
token-signature-identifier:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
command: node dist/lib/kafka-signature-identifier.js
depends_on:
- kafka
environment:
SOLANA_URL: "http://host.docker.internal:8899"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_TOPIC: json.solana.signatures.token
ADDRESS: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
atoken-signature-identifier:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
command: node dist/lib/kafka-signature-identifier.js
depends_on:
- kafka
environment:
SOLANA_URL: "http://host.docker.internal:8899"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_TOPIC: json.solana.signatures.atoken
ADDRESS: ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL
name-signature-identifier:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
command: node dist/lib/kafka-signature-identifier.js
depends_on:
- kafka
environment:
SOLANA_URL: "http://host.docker.internal:8899"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_TOPIC: json.solana.signatures.name
ADDRESS: namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX
signature-collector:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
command: node dist/lib/kafka-signature-collector.js
depends_on:
- kafka
- name-signature-identifier
- atoken-signature-identifier
- token-signature-identifier
environment:
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_INPUT_TOPIC: json.solana.signatures..*
KAFKA_TOPIC: json.solana.signatures
KAFKA_GROUP_ID: kafka-signature-collector
KAFKA_OFFSET_RESET: earliest
signature-processor:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
command: node dist/lib/kafka-signature-processor.js
depends_on:
- kafka
environment:
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_INPUT_TOPIC: json.solana.signatures
KAFKA_TOPIC: json.solana.transactions
SOLANA_URL: "http://host.docker.internal:8899"
KAFKA_GROUP_ID: kafka-signature-processor-1
KAFKA_OFFSET_RESET: earliest
event-transformer:
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
image: data-pipelines:latest
container_name: event-transformer
depends_on:
- kafka
command: node dist/lib/event-transformer
environment:
SOLANA_URL: "http://host.docker.internal:8899"
ANCHOR_IDLS: "TBondmkCYxaPCKG4CHYfVTcwQ8on31xnJrPzk8F8WsS,TCo1sfSr2nCudbeJPykbif64rG9K1JNMGzrtzvPmp3y"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_INPUT_TOPIC: "json.solana.transactions"
KAFKA_OUTPUT_TOPIC: "json.solana.events"
KAFKA_OFFSET_RESET: "earliest"
KAFKA_GROUP_ID: "solana-event-transformer"
elasticsearch:
image: elasticsearch:7.16.2
ports:
- 29200:9200
environment:
xpack.security.enabled: "false"
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
discovery.type: "single-node"
kibana:
image: docker.elastic.co/kibana/kibana:7.16.2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
kafka-connect:
image: confluentinc/cp-kafka-connect:5.4.6
depends_on:
- zookeeper
- kafka
ports:
- 8085:8085
environment:
CONNECT_BOOTSTRAP_SERVERS: "kafka:9092"
CONNECT_REST_PORT: 8085
CONNECT_GROUP_ID: kafka-connect
CONNECT_CONFIG_STORAGE_TOPIC: _kafka-connect-configs
CONNECT_OFFSET_STORAGE_TOPIC: _kafka-connect-offsets
CONNECT_STATUS_STORAGE_TOPIC: _kafka-connect-status
CONNECT_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE: "false"
CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE: "false"
CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_REST_ADVERTISED_HOST_NAME: "kafka-connect-01"
CONNECT_LOG4J_ROOT_LOGLEVEL: "INFO"
CONNECT_LOG4J_LOGGERS: "org.apache.kafka.connect.runtime.rest=WARN,org.reflections=ERROR"
CONNECT_LOG4J_APPENDER_STDOUT_LAYOUT_CONVERSIONPATTERN: "[%d] %p %X{connector.context}%m (%c:%L)%n"
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_PLUGIN_PATH: /usr/share/java,/usr/share/confluent-hub-components