-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (50 loc) · 1.07 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
version: '3.7'
services:
spark_master:
build:
context: ./SourceCode/docker/Spark-Master
dockerfile: ./Dockerfile
container_name: spark_master
privileged: true
ports:
- "8080:8080"
- "7077:7077"
- "5000-5010:5000-5010"
networks:
- spark_net
tty: true
spark_worker1:
build:
context: ./SourceCode/docker/Spark-Slave
dockerfile: ./Dockerfile
container_name: spark_worker1
depends_on:
- spark_master
privileged: true
environment:
SPARK_MASTER_HOST: host.docker.internal
SPARK_MASTER_PORT: 7077
ports:
- "8081:8081"
networks:
- spark_net
tty: true
spark_worker2:
build:
context: ./SourceCode/docker/Spark-Slave
dockerfile: ./Dockerfile
container_name: spark_worker2
depends_on:
- spark_master
privileged: true
environment:
SPARK_MASTER_HOST: host.docker.internal
SPARK_MASTER_PORT: 7077
ports:
- "8082:8081"
networks:
- spark_net
tty: true
networks:
spark_net:
driver: bridge