-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
729 lines (652 loc) Β· 19.8 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
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
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
version: '2.3'
services:
################################## CONFLUENT | KAFKA | ZOOKEEPER
zookeeper:
image: confluentinc/cp-zookeeper:6.1.4
restart: unless-stopped
# logging:
# driver: none
environment:
ZOOKEPEER_LOG4J_ROOT_LOGLEVEL: WARN
ZOOKEPEER_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
healthcheck:
test: nc -z localhost 2181 || exit 1
interval: 3s
timeout: 10s
retries: 5
start_period: 10s
kafka:
image: confluentinc/cp-kafka:6.1.4
restart: unless-stopped
# logging:
# driver: none
ports:
- '9092:9092'
depends_on:
zookeeper:
condition: service_healthy
environment:
KAFKA_BROKER_ID: 1
KAFKA_LOG4J_ROOT_LOGLEVEL: WARN
KAFKA_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# Option advertised.listeners {name://host:port} used so someone can access kafka outside of container\cluster.
# 'kafka:29092' used by clickhouse-server inside docker-compose network, when 'localhost:9092' is used by containers inside network.
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
healthcheck:
test: nc -z localhost 9092 || exit 1
interval: 3s
timeout: 10s
retries: 5
start_period: 10s
kafka-rest:
image: confluentinc/cp-kafka-rest:6.1.4
restart: unless-stopped
# logging:
# driver: none
ports:
- '8083:8083'
depends_on:
- zookeeper
- schema-registry
environment:
KAFKA_REST_ROOT_LOGLEVEL: WARN
KAFKA_REST_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
KAFKA_REST_BOOTSTRAP_SERVERS: kafka:29092
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_REST_LISTENERS: http://kafka-rest:8083
KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081
KAFKA_REST_HOST_NAME: kafka
kafka-topics:
image: landoop/kafka-topics-ui:0.9.4
restart: unless-stopped
# logging:
# driver: none
ports:
- '8000:8000'
depends_on:
- kafka
- kafka-rest
- schema-registry
environment:
KAFKA_REST_PROXY_URL: kafka-rest:8083
PROXY: 'true'
ksql-server:
image: confluentinc/cp-ksql-server:5.4.6
restart: unless-stopped
# logging:
# driver: none
ports:
- '8088:8088'
depends_on:
- kafka
- schema-registry
environment:
KSQL_LOG4J_ROOT_LOGLEVEL: WARN
KSQL_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
KSQL_BOOTSTRAP_SERVERS: kafka:29092
KSQL_LISTENERS: http://ksql-server:8088
KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry:8081
KSQL_PRODUCER_INTERCEPTOR_CLASSES: io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor
KSQL_CONSUMER_INTERCEPTOR_CLASSES: io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor
ksql-cli:
image: confluentinc/cp-ksql-cli:5.4.6
restart: unless-stopped
# logging:
# driver: none
depends_on:
- ksql-server
entrypoint: /bin/sh
tty: true
schema-registry:
image: confluentinc/cp-schema-registry:6.1.4
restart: unless-stopped
# logging:
# driver: none
ports:
- '8081:8081'
depends_on:
kafka:
condition: service_healthy
zookeeper:
condition: service_healthy
environment:
SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: WARN
SCHEMA_REGISTRY_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_LISTENERS: http://schema-registry:8081
healthcheck:
test: nc -z localhost 8081 || exit 1
interval: 3s
timeout: 10s
retries: 5
start_period: 10s
control-center:
image: confluentinc/cp-enterprise-control-center:6.1.4
restart: unless-stopped
# logging:
# driver: none
ports:
- '9021:9021'
depends_on:
- kafka
- schema-registry
- ksql-server
environment:
CONTROL_CENTER_ROOT_LOGLEVEL: WARN
CONTROL_CENTER_LOG4J_TOOLS_ROOT_LOGLEVEL: WARN
CONTROL_CENTER_BOOTSTRAP_SERVERS: kafka:29092
CONTROL_CENTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONTROL_CENTER_KSQL_URL: http://ksql-server:8088
CONTROL_CENTER_KSQL_ADVERTISED_URL: http://ksql-server:8088
CONTROL_CENTER_SCHEMA_REGISTRY_URL: http://schema-registry:8081
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
PORT: 9021
#################################### NATS
nats:
image: nats:2.7.2-alpine3.15
# logging:
# driver: none
ports:
- '8222:8222'
- '4222:4222'
hostname: nats-server
############################ MINIO (S3)
minio1:
image: minio/minio:RELEASE.2022-02-12T00-51-25Z
restart: unless-stopped
# logging:
# driver: none
ports:
- '9001:9000'
volumes:
- /data1
- /data2
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live' ]
interval: 30s
timeout: 20s
retries: 3
minio2:
image: minio/minio:RELEASE.2022-02-12T00-51-25Z
restart: unless-stopped
# logging:
# driver: none
ports:
- '9002:9000'
volumes:
- /data1
- /data2
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live' ]
interval: 30s
timeout: 20s
retries: 3
############################ ORACLE
oracle:
image: store/oracle/database-enterprise:12.2.0.1
restart: unless-stopped
# logging:
# driver: none
ports:
- '1521:1521'
- '5500:5500'
################################ POSTGRES
postgres:
image: postgres:13-alpine3.15
restart: unless-stopped
# logging:
# driver: none
ports:
- '5432:5432'
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
pgadmin4:
image: dpage/pgadmin4:6.5
restart: unless-stopped
# logging:
# driver: none
ports:
- '8010:80'
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: ma@il.com
PGADMIN_DEFAULT_PASSWORD: postgres
################################# CAMUNDA
camunda:
image: camunda/camunda-bpm-platform:7.7.0
restart: unless-stopped
# logging:
# driver: none
ports:
- '8086:8080'
environment:
DB_DRIVER: org.postgresql.Driver
DB_URL: jdbc:postgresql://postgres:5432/postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
################################# COCKROACH
cockroach:
image: cockroachdb/cockroach:v21.2.6
restart: unless-stopped
# logging:
# driver: none
command: start-single-node --insecure
ports:
- '26257:26257'
- '8082:8080'
################################ ARANGO
arangodb:
image: arangodb:3.7.11
restart: unless-stopped
# logging:
# driver: none
ports:
- '8528:8529'
environment:
ARANGO_NO_AUTH: 1
################################ ARANGO CLUSTER
arangodb-agent1:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication false
--agency.my-address tcp://arangodb-agent1:8529
--agency.endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--agency.activate true
--agency.size 3
--agency.supervision true
--database.directory /var/lib/arangodb3/agency1'
arangodb-agent2:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication false
--agency.my-address tcp://arangodb-agent2:8529
--agency.endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--agency.activate true
--agency.size 3
--agency.supervision true
--database.directory /var/lib/arangodb3/agency2'
depends_on:
- arangodb-agent1
arangodb-agent3:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication false
--agency.my-address tcp://arangodb-agent3:8529
--agency.endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--agency.activate true
--agency.size 3
--agency.supervision true
--database.directory /var/lib/arangodb3/agency3'
depends_on:
- arangodb-agent1
arangodb-coordinator1:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-coordinator1:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info coord1
--cluster.my-role COORDINATOR
--database.directory /var/lib/arangodb3/arangodb-coordinator1'
ports:
- '8529:8529'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
arangodb-coordinator2:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-coordinator2:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info coord2
--cluster.my-role COORDINATOR
--database.directory /var/lib/arangodb3/arangodb-coordinator2'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
arangodb-coordinator3:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-coordinator3:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info coord3
--cluster.my-role COORDINATOR
--database.directory /var/lib/arangodb3/arangodb-coordinator3'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
arangodb-db1:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-db1:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info arangodb-db1
--cluster.my-role DBSERVER
--database.directory /var/lib/arangodb3/arangodb-db1'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
arangodb-db2:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-db2:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info arangodb-db2
--cluster.my-role DBSERVER
--database.directory /var/lib/arangodb3/arangodb-db2'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
arangodb-db3:
image: arangodb/arangodb:3.7.11
environment:
ARANGO_NO_AUTH: 1
command: 'arangod --server.authentication=false
--cluster.my-address tcp://arangodb-db3:8529
--cluster.agency-endpoint tcp://arangodb-agent1:8529
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-local-info arangodb-db3
--cluster.my-role DBSERVER
--database.directory /var/lib/arangodb3/arangodb-db3'
depends_on:
- arangodb-agent1
- arangodb-agent2
- arangodb-agent3
############################### MONGO
mongo:
image: mongo:5.0.6
restart: unless-stopped
# logging:
# driver: none
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: mongo
MONGO_INITDB_DATABASE: public
################################# REDIS
redis:
image: redis:6.2.6
restart: unless-stopped
# logging:
# driver: none
ports:
- '6379:6379'
command: redis-server
redis-commander:
image: rediscommander/redis-commander
restart: unless-stopped
# logging:
# driver: none
ports:
- '8084:8081'
environment:
REDIS_HOSTS: local:redis:6379:0:test
################################## ClickHouse
# To connect to kafka use - kafka:29092
clickhouse-server:
image: yandex/clickhouse-server:21.3.20.1
restart: unless-stopped
# logging:
# driver: none
ports:
- '8123:8123'
- '9000:9000'
- '9009:9009'
volumes:
- ./clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/users.xml:/etc/clickhouse-server/users.xml
healthcheck:
test: wget --no-verbose --tries=1 --spider localhost:8123/ping || exit 1
interval: 3s
timeout: 10s
retries: 5
start_period: 10s
# Useless to use inside docker-compose, use as outter container
# clickhouse-client:
# image: yandex/clickhouse-client:21.3.20.1
## logging:
## driver: none
# depends_on:
# clickhouse-server:
# condition: service_healthy
# command: [ '--host', 'clickhouse-server', '--query', 'select * from system.functions order by name limit 4' ]
################################# REDASH
redash-createdb:
image: redash/redash:10.1.0.b50633
# logging:
# driver: none
depends_on:
- redis
- postgres
command: create_db
environment:
PYTHONUNBUFFERED: 0
REDASH_RATELIMIT_ENABLED: 'false'
REDASH_LOG_LEVEL: INFO
REDASH_COOKIE_SECRET: secret
REDASH_SECRET_KEY: secret
REDASH_REDIS_URL: redis://redis:6379/0
REDASH_DATABASE_URL: postgresql://postgres:postgres@postgres/postgres
redash-server:
image: redash/redash:10.1.0.b50633
restart: unless-stopped
# logging:
# driver: none
ports:
- '5000:5000'
- '5678:5678'
depends_on:
- redis
- postgres
- redash-createdb
command: server
environment:
PYTHONUNBUFFERED: 0
REDASH_RATELIMIT_ENABLED: 'false'
REDASH_LOG_LEVEL: INFO
REDASH_COOKIE_SECRET: secret
REDASH_SECRET_KEY: secret
REDASH_REDIS_URL: redis://redis:6379/0
REDASH_DATABASE_URL: postgresql://postgres:postgres@postgres/postgres
redash-scheduler:
image: redash/redash:10.1.0.b50633
restart: unless-stopped
# logging:
# driver: none
depends_on:
- redis
- postgres
- redash-createdb
command: scheduler
environment:
PYTHONUNBUFFERED: 0
REDASH_RATELIMIT_ENABLED: 'false'
REDASH_LOG_LEVEL: INFO
REDASH_COOKIE_SECRET: secret
REDASH_SECRET_KEY: secret
REDASH_REDIS_URL: redis://redis:6379/0
REDASH_DATABASE_URL: postgresql://postgres:postgres@postgres/postgres
redash-worker:
image: redash/redash:10.1.0.b50633
restart: unless-stopped
# logging:
# driver: none
depends_on:
- redis
- postgres
- redash-createdb
command: worker
environment:
PYTHONUNBUFFERED: 0
REDASH_RATELIMIT_ENABLED: 'false'
REDASH_LOG_LEVEL: INFO
REDASH_COOKIE_SECRET: secret
REDASH_SECRET_KEY: secret
REDASH_REDIS_URL: redis://redis:6379/0
REDASH_DATABASE_URL: postgresql://postgres:postgres@postgres/postgres
################################# INFINISPAN
# INFO - https://github.com/infinispan/infinispan-images
infinispan:
image: infinispan/server:14.0
restart: unless-stopped
# logging:
# driver: none
ports:
- '11222:11222'
environment:
USER: admin
PASS: admin
################################# HAZELCAST
hazelcast:
image: hazelcast/hazelcast:4.0.6
restart: unless-stopped
# logging:
# driver: none
ports:
- '5701:5701'
environment:
JAVA_OPTS: -Dhazelcast.shutdownhook.policy=GRACEFUL
################################# ELASTIC SEARCH
elastic:
image: elasticsearch:7.6.1
restart: unless-stopped
# logging:
# driver: none
ports:
- '9200:9200'
- '9300:9300'
environment:
discovery.type: single-node
############################### SONARQUBE
sonarqube:
image: sonarqube:8.9.7-community
restart: unless-stopped
# logging:
# driver: none
ports:
- '9003:9000'
############################# JAEGER
jaeger:
image: jaegertracing/all-in-one
restart: unless-stopped
# logging:
# driver: none
ports:
- '6831:6831/udp'
- '16686:16686'
############################# APACHE ATLAS
atlas-server:
image: wbaa/rokku-dev-apache-atlas
restart: unless-stopped
# logging:
# driver: none
ports:
- '21000:21000'
depends_on:
- kafka
############################# CASSANDRA
cassandra:
image: cassandra:4.0.3
restart: unless-stopped
# logging:
# driver: none
ports:
- '9160:9160' # Thrift client API
- '9042:9042' # CQL native transport port
- '7199:7199' # JMX
- '7001:7001' # TLS Internode communication
- '7000:7000' # Internode communication
environment:
CASSANDRA_START_RPC: 'true'
############################# PACT BROKER
pact-broker:
image: dius/pact-broker:2.93.4.0
restart: unless-stopped
# logging:
# driver: none
links:
- postgres
depends_on:
- postgres
ports:
- '8011:80'
environment:
PACT_BROKER_BASIC_AUTH_USERNAME: root
PACT_BROKER_BASIC_AUTH_PASSWORD: 1234
PACT_BROKER_BASIC_AUTH_READ_ONLY_USERNAME: 'true'
PACT_BROKER_BASIC_AUTH_READ_ONLY_PASSWORD: 'true'
PACT_BROKER_DATABASE_HOST: db
PACT_BROKER_DATABASE_NAME: postgres
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: postgres
check_for_potential_duplicate_pacticipant_names: 'false'
############################# Apache Nifi
nifi:
image: apache/nifi:1.15.3
restart: unless-stopped
# logging:
# driver: none
ports:
- '8085:8080'
############################# GraphQL Apollo Federation
apollo-federation:
image: xmorse/apollo-federation-gateway
restart: unless-stopped
# logging:
# driver: none
ports:
- '8012:80'
environment:
CACHE_MAX_AGE: '5' # default cache
ENGINE_API_KEY: '...' # to connect to the apollo engine
POLL_INTERVAL: 30 # to update services changes
URL_0: "http://host.docker.internal:8080/graphql" # For local service to access or can be external link
URL_1: "http://host.docker.internal:8081/graphql" # For local service to access or can be external link
# You can add any amount of services URL_2, URL_3, etc