-
Notifications
You must be signed in to change notification settings - Fork 312
/
docker-compose_old.yml
executable file
·289 lines (272 loc) · 6.21 KB
/
docker-compose_old.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
version: '3'
services:
namenode:
image: fjardim/namenode_sqoop
container_name: namenode
hostname: namenode
volumes:
- ./data/hdfs/namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./data/hadoop/hadoop-hive.env
ports:
- "50070:50070"
deploy:
resources:
limits:
memory: 500m
datanode:
image: fjardim/datanode
container_name: datanode
hostname: datanode
volumes:
- ./data/hdfs/datanode:/hadoop/dfs/data
#- ./data/hadoop/bank:/bank
env_file:
- ./data/hadoop/hadoop-hive.env
environment:
SERVICE_PRECONDITION: "namenode:50070"
depends_on:
- namenode
ports:
- "50075:50075"
deploy:
resources:
limits:
memory: 500m
hive-server:
image: fjardim/hive
container_name: hive-server
hostname: hive_server
env_file:
- ./data/hadoop/hadoop-hive.env
environment:
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore"
SERVICE_PRECONDITION: "hive-metastore:9083"
ports:
- "10000:10000"
depends_on:
- hive-metastore
deploy:
resources:
limits:
memory: 500m
hive-metastore:
image: fjardim/hive
container_name: hive_metastore
hostname: hive_metastore
env_file:
- ./data/hadoop/hadoop-hive.env
command: /opt/hive/bin/hive --service metastore
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 hive-metastore-postgresql:5432"
ports:
- "9083:9083"
depends_on:
- hive-metastore-postgresql
deploy:
resources:
limits:
memory: 500m
hive-metastore-postgresql:
image: fjardim/hive-metastore
container_name: hive-metastore-postgresql
hostname: hive_metastore_postgresql
volumes:
- ./data/postgresql:/var/lib/postgresql/data
depends_on:
- datanode
deploy:
resources:
limits:
memory: 500m
hue:
image: fjardim/hue
hostname: hue
container_name: hue
dns: 8.8.8.8
ports:
- "8888:8888"
volumes:
- ./data/hue/hue-overrides.ini:/usr/share/hue/desktop/conf/z-hue.ini
depends_on:
- "database"
deploy:
resources:
limits:
memory: 500m
database:
image: fjardim/mysql
container_name: database
hostname: database
ports:
- "33061:3306"
deploy:
resources:
limits:
memory: 500m
command: mysqld --innodb-flush-method=O_DSYNC --innodb-use-native-aio=OFF --init-file /data/application/init.sql
volumes:
- ./data/mysql/data:/var/lib/mysql
- ./data/mysql/init.sql:/data/application/init.sql
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: hue
MYSQL_USER: root
MYSQL_PASSWORD: secret
zookeeper:
image: fjardim/zookeeper
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
volumes:
- ./data/zookeeper:/opt/zookeeper-3.4.6/data
deploy:
resources:
limits:
memory: 500m
kafka:
image: fjardim/kafka
container_name: kafka
hostname: kafka
ports:
- "9092:9092"
volumes:
- ./data/kafka:/kafka/kafka-logs-kafka
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
deploy:
resources:
limits:
memory: 500m
presto-coordinator:
image: fjardim/prestodb
container_name: presto
hostname: presto
ports:
- "8080:8080"
depends_on:
- hive-server
deploy:
resources:
limits:
memory: 500m
hbase-master:
image: fjardim/hbase-master
container_name: hbase-master
hostname: hbase-master
env_file:
- ./data/hbase/hbase-standalone.env
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 zookeeper:2181"
ports:
- 16010:16010
depends_on:
- namenode
deploy:
resources:
limits:
memory: 500m
mongo:
image: fjardim/mongo
container_name: mongo
hostname: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
volumes:
- ./data/mongo:/data
deploy:
resources:
limits:
memory: 500m
mongo-express:
image: fjardim/mongo-express
container_name: mongo_express
hostname: mongo_express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ME_CONFIG_MONGODB_SERVER: mongo
deploy:
resources:
limits:
memory: 200m
kafkamanager:
image: fjardim/kafkamanager
container_name: kafkamanager
hostname: kafkamanager
environment:
ZK_HOSTS: zookeeper:2181
ports:
- 9000:9000
depends_on:
- kafka
deploy:
resources:
limits:
memory: 200m
metabase:
image: fjardim/metabase
container_name: metabase
hostname: metabase
volumes:
- ./data/metabase/data:/metabase-data
environment:
MB_DB_FILE: "/metabase-data/metabase.db"
ports:
- 3000:3000
deploy:
resources:
limits:
memory: 500m
nifi:
image: fjardim/nifi
container_name: nifi
hostname: nifi
volumes:
- ./data/nifi:/opt/nifi/nifi-current/flowfile_repository
- ./data/util:/util
environment:
NIFI_WEB_HTTP_PORT: "9090"
ports:
- "9090:9090"
- "8443:8443"
deploy:
resources:
limits:
memory: 500m
jupyter-spark:
image: fjardim/jupyter-spark
hostname: jupyter-spark
container_name: jupyter-spark
command: notebook
env_file:
- ./data/jupyter/jupyter.env
ports:
- 8889:8889
- 4040:4040
- 4041:4041
- 4042:4042
- 4043:4043
volumes:
- ./data/notebooks:/mnt/notebooks/
environment:
SPARK_MASTER: local[*]
JUPYTER_PORT: 8889
deploy:
resources:
limits:
memory: 1g