-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdoker-compose.yml
101 lines (93 loc) · 2.78 KB
/
doker-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
version: '2.1'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
redis:
image: redis:latest
container_name: redis
hostname: redis
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PORT=6379
kafka:
image: confluentinc/cp-kafka:7.3.2
container_name: kafka
hostname: kafka
ports:
- "9092:9092"
- "29092:29092"
environment:
KAFKA_LISTENERS: INTERNAL://0.0.0.0:9092,EXTERNAL://0.0.0.0:29092
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
clickhouse:
image: clickhouse/clickhouse-server
user: "101:101"
container_name: clickhouse
hostname: clickhouse
volumes:
- ./clickhouse/etc/clickhouse-server/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./clickhouse/etc/clickhouse-server/config.d/schema.sql:/tmp/clickhouse-server/schema.sql
- ./clickhouse/etc/clickhouse-server/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- "8123:8123"
- "9000:9000"
depends_on:
- listener
grafana:
build:
context: ./grafana/
dockerfile: grafana.Dockerfile
container_name: grafana
hostname: grafana
volumes:
- ./grafana/etc/grafana/provisioning/datasources/clickhouse.yml:/etc/grafana/provisioning/datasources/clickhouse.yml
- ./grafana/etc/grafana/provisioning/dashboards/local.yml:/etc/grafana/provisioning/dashboards/local.yml
- ./grafana/var/lib/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- "3000:3000"
depends_on:
- clickhouse
listener:
build:
context: ./listener/
dockerfile: Dockerfile
container_name: listener
hostname: listener
ports:
- "8081:8081"
depends_on:
- kafka
executionservice:
build:
context: ./executionservice/
dockerfile: Dockerfile
container_name: executionservice
hostname: executionservice
depends_on:
- kafka
- redis
emitter:
build:
context: ./emitter/
dockerfile: Dockerfile
container_name: emitter
hostname: emitter
depends_on:
- kafka