-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.08 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
version: "3.7"
services:
spark-master:
container_name: spark-master
hostname: spark-master
image: magiplatform/spark:latest
entrypoint: /opt/app/bin/master.sh
environment:
SPARK_MASTER_HOST: spark-master
SPARK_CLUSTER_DEBUG: "true"
ports:
- "7077:7077"
- "8080:8080"
- "6066:6066"
- "5050:5050"
networks:
- spark
spark-worker-1:
container_name: spark-worker-1
hostname: spark-worker-1
image: magiplatform/spark:latest
entrypoint: /opt/app/bin/worker.sh
environment:
SPARK_MASTER_HOST: spark-master
ports:
- "7078:7078"
- "8081:8081"
- "5051:5050"
depends_on:
- spark-master
networks:
- spark
spark-worker-2:
container_name: spark-worker-2
hostname: spark-worker-2
image: magiplatform/spark:latest
entrypoint: /opt/app/bin/worker.sh
environment:
SPARK_MASTER_HOST: spark-master
ports:
- "7079:7078"
- "8082:8081"
- "5052:5050"
depends_on:
- spark-master
networks:
- spark
networks:
spark: