-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
244 lines (225 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
version: '2.1'
services:
edm-hdfs-namenode:
# container_name: edm-hdfs-namenode
image: elastest/edm-hadoop:latest
# build: ./hadoop
command: [ "sh", "-c", "/namenode.sh" ]
privileged: true
ports:
- "50070:50070"
- "9000:9000"
- "8020:8020"
- "8001:8001"
hostname: edm-hdfs-namenode
networks:
- elastest
hdfs-datanode:
# container_name: hdfs-datanode
image: elastest/edm-hadoop:latest
# build: ./hadoop
command: [ "sh", "-c", "hdfs datanode" ]
# The host port is randomly assigned by Docker,
# to allow scaling to multiple DataNodes on the same host
ports:
- "50075"
links:
- edm-hdfs-namenode
networks:
- elastest
alluxio-master:
# container_name: alluxio-master
image: elastest/edm-alluxio:latest
# build: ./alluxio
command: master
ports:
- 19999:19999
- 19998:19998
volumes:
- ./alluxio/data:/underStorage
# - ./rest/scripts:/scripts
environment:
- ALLUXIO_MASTER_HOSTNAME=alluxio-master
- ALLUXIO_UNDERFS_ADDRESS=/underStorage
# - ALLUXIO_UNDERFS_ADDRESS=hdfs://edm-hdfs-namenode:9000
links:
- edm-hdfs-namenode
hostname: alluxio-master
networks:
- elastest
alluxio-worker:
# container_name: alluxio-worker
image: elastest/edm-alluxio:latest
# build: ./alluxio
command: worker
ports:
- "29998"
- "29999"
volumes:
- ./alluxio/data:/underStorage
links:
- edm-hdfs-namenode
- alluxio-master
# privileged: true ### enable to use ramfs with docker. otherwise it will use disk
environment:
- ALLUXIO_MASTER_HOSTNAME=alluxio-master
- ALLUXIO_RAM_FOLDER=/mnt/ramdisk
- ALLUXIO_WORKER_MEMORY_SIZE=1GB
- ALLUXIO_UNDERFS_ADDRESS=/underStorage
# - ALLUXIO_UNDERFS_ADDRESS=hdfs://edm-hdfs-namenode:9000
networks:
- elastest
# rest-api:
# # build: ./rest # path is relative to docker-compose.yml location
# image: elastest/edm:0.1
# volumes:
# - ./rest/rest_api_project:/usr/src/app # mount point
# - ./rest/alluxio_conf:/opt/alluxio/conf
# - ./rest/scripts:/scripts
# - ./backup:/backup
# links:
# - alluxio-master
# - elasticsearch
# - mysql
# ports:
# - 8000:8000 # host:container
# networks:
# - elastest
rest-java:
# build: ./rest-java # path is relative to docker-compose.yml location
image: elastest/edm:latest
volumes:
- ./rest-java/rest_api_project/deployment:/usr/local/tomcat/webapps
- ./rest-java/rest_api_project/edm-rest:/usr/src/edm-rest
- ./rest-java/alluxio_conf:/opt/alluxio/conf
- ./backup:/backup
links:
- alluxio-master
- elasticsearch
- mysql
ports:
- 8000:8080 # host:container
networks:
- elastest
alluxio-proxy:
# container_name: alluxio-proxy
image: elastest/edm-alluxio:latest
# build: ./alluxio
command: proxy
ports:
- 39999:39999
volumes:
- ./alluxio/data:/underStorage
links:
- alluxio-worker
# privileged: true ### enable to use ramfs with docker. otherwise it will use disk
environment:
- ALLUXIO_MASTER_HOSTNAME=alluxio-master
# - ALLUXIO_RAM_FOLDER=/mnt/ramdisk
# - ALLUXIO_WORKER_MEMORY_SIZE=1GB
# - ALLUXIO_UNDERFS_ADDRESS=hdfs://edm-hdfs-namenode:9000
networks:
- elastest
elasticsearch:
# container_name: elasticsearch
image: elastest/edm-elasticsearch:latest
# build: ./elasticsearch
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./backup/elasticsearch:/backup
- ./elasticsearch/esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
- ES_JAVA_OPTS=-Xmx512m -Xms512m
- discovery.type=zen
# use internal Docker round-robin DNS for unicast discovery
- discovery.zen.ping.unicast.hosts=elasticsearch
- discovery.zen.minimum_master_nodes=2
hostname: elasticsearch
networks:
- elastest
esnode:
# container_name: esnode
image: elastest/edm-elasticsearch:latest
# build: ./elasticsearch
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./backup/elasticsearch:/backup
- ./elasticsearch/esdata2:/usr/share/elasticsearch/data
ports:
- "9200"
- "9300"
environment:
- ES_JAVA_OPTS=-Xmx512m -Xms512m
# use internal Docker round-robin DNS for unicast discovery
- discovery.type=zen
- discovery.zen.ping.unicast.hosts=elasticsearch
- discovery.zen.minimum_master_nodes=2
depends_on:
- elasticsearch
hostname: esnode
networks:
- elastest
kibana:
# container_name: kibana
image: elastest/edm-kibana:latest
# build: ./kibana
volumes:
- ./kibana/config/:/usr/share/kibana/config
ports:
- "5601:5601"
environment:
- ES_JAVA_OPTS=-Xmx256m -Xms256m
# use internal Docker round-robin DNS for unicast discovery
- discovery.type=zen
- discovery.zen.ping.unicast.hosts=elasticsearch
networks:
- elastest
depends_on:
- elasticsearch
cerebro:
# container_name: cerebro
image: elastest/edm-cerebro:latest
# build: ./cerebro
volumes:
- ./cerebro/config:/opt/cerebro-0.6.5/conf
- ./cerebro/logs:/opt/cerebro-0.6.5/logs
depends_on:
# - esnode
- elasticsearch
ports:
- 9400:9000
environment:
- ELASTICSEARCH_HOST=http://elasticsearch:9200
tty: true
networks:
- elastest
mysql:
# container_name: mysql
image: elastest/edm-mysql:latest
# image: mysql:5.7
# build: ./mysql
ports:
- "3306:3306"
environment:
# MYSQL_ROOT_PASSWORD: "elastestroot"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "elastest"
MYSQL_USER: elastest
MYSQL_PASSWORD: elastest
volumes:
# - mysql_data:/var/lib/mysql
- ./mysql/data:/var/lib/mysql
# - ./mysql/init:/docker-entrypoint-initdb.d
# - ./mysql/config:/etc/mysql/conf.d
# restart: always
networks:
- elastest
# volumes:
# mysql_data:
networks:
elastest:
external: true
# driver: bridge