forked from lucrussell/docker-druid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
258 lines (238 loc) · 6.34 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
version: "3"
services:
interlock:
image: gcr.io/npav-172917/interlock:latest
#image: ehazlett/interlock:1.4.1
command: -D run -c /etc/interlock/config.toml
tty: true
ports:
- 8080
environment:
INTERLOCK_CONFIG: |
ListenAddr = ":8080"
#PollInterval = "5s"
DockerURL = "unix:///var/run/docker.sock"
#DockerURL = "tcp://debian-leader.c.npav-172917.internal:2376"
#TLSCACert = "/etc/docker/ssl/docker-ca.pem"
#TLSCert = "/etc/docker/ssl/docker-cert.pem"
#TLSKey = "/etc/docker/ssl/docker-key.pem"
[[Extensions]]
Name = "nginx"
ConfigPath = "/etc/nginx/nginx.conf"
PidPath = "/var/run/nginx.pid"
TemplatePath = ""
MaxConn = 1024
Port = 80
volumes:
- /etc/docker:/etc/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
nginx:
image: nginx:latest
entrypoint: nginx
command: -g "daemon off;" -c /etc/nginx/nginx.conf
ports:
- 80:80
labels:
- "interlock.ext.name=nginx"
deploy:
placement:
constraints:
- node.role == manager
postgres:
image: postgres:9.2
container_name: postgres
environment:
- POSTGRES_PASSWORD=TCrGaanoC2s7gT
zookeeper:
container_name: zookeeper
image: znly/zookeeper:3.4.8
environment:
- ZOO_ID=1
- ZOO_SERVERS=zookeeper
## Druid nodes
overlord:
image: gcr.io/npav-172917/druid:0.10.1
hostname: overlord
labels:
- "interlock.hostname=${DEPLOYMENT_NAME}.druid"
- "interlock.domain=${DOMAIN_NAME}"
- "interlock.port=8090"
- "interlock.network=druid_default"
- "interlock.context_root="
- "interlock.context_root_rewrite=false"
environment:
- DRUID_XMX=1g
- DRUID_XMS=1g
- DRUID_MAXNEWSIZE=250m
- DRUID_NEWSIZE=250m
deploy:
placement:
constraints:
- node.role == manager
ports:
- 8090:8090
command:
- overlord
coordinator:
image: gcr.io/npav-172917/druid:0.10.1
hostname: coordinator
labels:
- "interlock.hostname=${DEPLOYMENT_NAME}.coordinator"
- "interlock.domain=${DOMAIN_NAME}"
- "interlock.port=8081"
- "interlock.network=druid_default"
environment:
- DRUID_XMX=1g
- DRUID_XMS=1g
- DRUID_MAXNEWSIZE=250m
- DRUID_NEWSIZE=250m
ports:
- 8081:8081
command:
- coordinator
deploy:
placement:
constraints:
- node.role == manager
middlemanager:
image: gcr.io/npav-172917/druid:0.10.1
environment:
- DRUID_XMX=1g
- DRUID_XMS=1g
- DRUID_MAXNEWSIZE=250m
- DRUID_NEWSIZE=250m
command:
- middleManager
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-3 == true
historical:
image: gcr.io/npav-172917/druid:0.10.1
environment:
- DRUID_XMX=3g
- DRUID_XMS=1g
- DRUID_MAXNEWSIZE=700m
- DRUID_NEWSIZE=500m
- DRUID_MAX_DIRECTMEM_SIZE=1500m
command:
- historical
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-3 == true
broker:
image: gcr.io/npav-172917/druid:0.10.1
labels:
- "interlock.hostname=${DEPLOYMENT_NAME}.broker"
- "interlock.domain=${DOMAIN_NAME}"
- "interlock.port=8082"
- "interlock.network=druid_default"
environment:
- DRUID_XMX=4g
- DRUID_XMS=1500m
- DRUID_MAXNEWSIZE=1g
- DRUID_NEWSIZE=500m
- DRUID_MAX_DIRECTMEM_SIZE=1500m
ports:
- 8082:8082
command:
- broker
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-1 == true
metabase:
image: metabase/metabase-head:latest
#image: metabase/metabase:v0.25.1
hostname: metabase
ports:
- 3000:3000
deploy:
placement:
constraints:
- node.role == manager
labels:
- "interlock.hostname=${DEPLOYMENT_NAME}.metabase"
- "interlock.domain=${DOMAIN_NAME}"
- "interlock.port=3000"
- "interlock.network=druid_default"
# tranquility:
# image: gofly/tranquility:0.8.2
# hostname: tranquility
# labels:
# - "interlock.hostname=${DEPLOYMENT_NAME}.tranquility"
# - "interlock.domain=${DOMAIN_NAME}"
# - "interlock.port=8200"
# - "interlock.network=druid_default"
# deploy:
# placement:
# constraints:
# - node.role == manager
# volumes:
# - /etc/localtime:/etc/localtime
# - $PWD/tranquility-conf:/srv/tranquility/conf
# ports:
# - 8200:8200
# superset:
# hostname: superset
# #image: amancevice/superset:0.18.5
# image: amancevice/superset:latest
# ports:
# - 8088
# volumes:
# - $PWD/superset-conf:/etc/superset
# labels:
# - "interlock.hostname=${DEPLOYMENT_NAME}.superset"
# - "interlock.domain=${DOMAIN_NAME}"
# - "interlock.port=8088"
# - "interlock.network=druid_default"
# deploy:
# placement:
# constraints:
# - node.role == manager
## S3 on-prem support:
pithos:
image: gcr.io/npav-172917/pithos:latest
hostname: pithos
ports:
- "8080:8080"
depends_on:
- cassandra
volumes:
- /var/lib/data/pithos:/pithos/data
cassandra-1:
image: cassandra:2.1
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-1 == true
environment:
CASSANDRA_SEEDS: cassandra-1
CASSANDRA_BROADCAST_ADDRESS: cassandra-1
volumes:
- /var/lib/data/cassandra:/var/lib/cassandra/
cassandra-2:
image: cassandra:2.1
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-2 == true
environment:
CASSANDRA_SEEDS: cassandra-1
CASSANDRA_BROADCAST_ADDRESS: cassandra-2
volumes:
- /var/lib/data/cassandra:/var/lib/cassandra/
cassandra-3:
image: cassandra:2.1
deploy:
placement:
constraints:
- node.labels.${DEPLOYMENT_NAME}-3 == true
environment:
CASSANDRA_SEEDS: cassandra-1
CASSANDRA_BROADCAST_ADDRESS: cassandra-3
volumes:
- /var/lib/data/cassandra:/var/lib/cassandra/