-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.spark.yml
68 lines (65 loc) · 1.93 KB
/
docker-compose.spark.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
version: '3.6'
services:
spark-master:
image: bde2020/spark-master:3.1.1-hadoop3.2
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
- "4040:4040"
volumes:
- ./_script/docker-spark/apps:/opt/spark-apps
- ./_script/docker-spark/data:/opt/spark-data
- ./_script/docker-spark/conf:/spark/conf
- /tmp/spark-events-local:/tmp/spark-events
environment:
- INIT_DAEMON_STEP=setup_spark
spark-worker-1:
image: bde2020/spark-worker:3.1.1-hadoop3.2
container_name: spark-worker-1
depends_on:
- spark-master
ports:
- "8081:8081"
volumes:
- ./_script/docker-spark/apps:/opt/spark-apps
- ./_script/docker-spark/data:/opt/spark-data
- ./_script/docker-spark/conf:/spark/conf
- /tmp/spark-events-local:/tmp/spark-events
environment:
- "SPARK_MASTER=spark://spark-master:7077"
spark-worker-2:
image: bde2020/spark-worker:3.1.1-hadoop3.2
container_name: spark-worker-2
depends_on:
- spark-master
ports:
- "8082:8081"
volumes:
- ./_script/docker-spark/apps:/opt/spark-apps
- ./_script/docker-spark/data:/opt/spark-data
- ./_script/docker-spark/conf:/spark/conf
- /tmp/spark-events-local:/tmp/spark-events
environment:
- "SPARK_MASTER=spark://spark-master:7077"
spark-history-server:
image: bde2020/spark-history-server:3.1.1-hadoop3.2
container_name: spark-history-server
depends_on:
- spark-master
ports:
- "18081:18081"
volumes:
- ./_script/docker-spark/apps:/opt/spark-apps
- ./_script/docker-spark/data:/opt/spark-data
- ./_script/docker-spark/conf:/spark/conf
- /tmp/spark-events-local:/tmp/spark-events
storage-postgres:
image: postgres:11.7-alpine
container_name: storage-postgers
depends_on:
- spark-master
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=root