forked from bigdatagenomics/mango
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.03 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
version: '2'
services:
spark-master:
image: bde2020/spark-master:2.4.0-hadoop2.7
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
environment:
- INIT_DAEMON_STEP=setup_spark
volumes:
- ./:/code
working_dir: /code
spark-worker-1:
image: bde2020/spark-worker:2.4.0-hadoop2.7
container_name: spark-worker-1
depends_on:
- spark-master
environment:
- "SPARK_MASTER=spark://spark-master:7077"
volumes:
- ./:/code
working_dir: /code
spark-worker-2:
image: bde2020/spark-worker:2.4.0-hadoop2.7
container_name: spark-worker-2
depends_on:
- spark-master
environment:
- "SPARK_MASTER=spark://spark-master:7077"
volumes:
- ./:/code
working_dir: /code
spark-submit:
image: bde2020/spark-submit
command: "bash ./run-microbrew.sh"
volumes:
- ./:/code
working_dir: /code
depends_on:
- spark-master
- spark-worker-1
- spark-worker-2
ports:
- "9000:8080"