-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
174 lines (161 loc) · 4.28 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
version: '3'
volumes:
kafka_zookeeper_data: {}
kafka_data: {}
metadata_data: {}
middle_var: {}
historical_var: {}
broker_var: {}
coordinator_var: {}
router_var: {}
druid_shared: {}
services:
####################################################
# Kafka & Zookeeper
####################################################
zookeeper_kafka:
image: 'bitnami/zookeeper:latest'
container_name: zookeeper_kafka
restart: unless-stopped
ports:
- '2181:2181'
volumes:
- "kafka_zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:latest'
container_name: kafka
restart: unless-stopped
ports:
- '9092:9092'
- '9093:9093'
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_BROKER_ID=1
# Add listeners (for inside and outside docker-network)
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper_kafka:2181
- ALLOW_PLAINTEXT_LISTENER=yes
# Remove TLS client auth
- KAFKA_TLS_CLIENT_AUTH=none
- KAFKA_CLIENT_USER=leo
- KAFKA_CLIENT_PASSWORD=kafka
# Retention policy
- KAFKA_CFG_LOG_RETENTION_HOURS=24
depends_on:
- zookeeper_kafka
####################################################
# Apache Druid (TSDB)
####################################################
postgres:
container_name: postgres
image: postgres:latest
restart: unless-stopped
volumes:
- metadata_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=druid
- POSTGRES_DB=druid
# Need 3.5 or later for container nodes
zookeeper_druid:
container_name: zookeeper_druid
image: zookeeper:3.5
restart: unless-stopped
ports:
- "2182:2181"
environment:
- ZOO_MY_ID=1
coordinator:
image: apache/druid:0.22.1
container_name: coordinator
restart: unless-stopped
volumes:
- druid_shared:/opt/shared
- coordinator_var:/opt/druid/var
- /home/ethrole1/daisy/docker/druid/samples:/var/tmp/samples
depends_on:
- zookeeper_druid
- postgres
ports:
- "8081:8081"
command:
- coordinator
env_file:
- /home/ethrole1/daisy/docker/druid/environment
broker:
image: apache/druid:0.22.1
container_name: broker
restart: unless-stopped
volumes:
- broker_var:/opt/druid/var
- /home/ethrole1/daisy/docker/druid/samples:/var/tmp/samples
depends_on:
- zookeeper_druid
- postgres
- coordinator
ports:
- "8082:8082"
command:
- broker
env_file:
- /home/ethrole1/daisy/docker/druid/environment
historical:
image: apache/druid:0.22.1
container_name: historical
restart: unless-stopped
volumes:
- druid_shared:/opt/shared
- historical_var:/opt/druid/var
- /home/ethrole1/daisy/docker/druid/samples:/var/tmp/samples
depends_on:
- zookeeper_druid
- postgres
- coordinator
ports:
- "8083:8083"
command:
- historical
env_file:
- /home/ethrole1/daisy/docker/druid/environment
middlemanager:
image: apache/druid:0.22.1
container_name: middlemanager
restart: unless-stopped
volumes:
- druid_shared:/opt/shared
- middle_var:/opt/druid/var
- /home/ethrole1/daisy/docker/druid/samples:/var/tmp/samples
depends_on:
- zookeeper_druid
- postgres
- coordinator
ports:
- "8091:8091"
- "8100-8105:8100-8105"
command:
- middleManager
env_file:
- /home/ethrole1/daisy/docker/druid/environment
router:
image: apache/druid:0.22.1
container_name: router
restart: unless-stopped
volumes:
- router_var:/opt/druid/var
- /home/ethrole1/daisy/docker/druid/samples:/var/tmp/samples
depends_on:
- zookeeper_druid
- postgres
- coordinator
ports:
- "8888:8888"
command:
- router
env_file:
- /home/ethrole1/daisy/docker/druid/environment