-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
116 lines (116 loc) · 2.85 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
services:
minio:
container_name: minio
image: minio/minio
networks:
- my_network
ports:
- "9000:9000"
- "9090:9090"
volumes:
- ./mount/minio/data:/data
- ./mount/minio-config:/root/.minio
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
command: server /data --console-address ":9090"
postgres:
container_name: postgres
image: postgres:14.2-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: hive
POSTGRES_PASSWORD: hive123
POSTGRES_DB: metastore_db
depends_on:
- minio
networks:
- my_network
volumes:
- ./mount/postgres/data:/var/lib/postgresql/data
hive-metastore:
container_name: hive-metastore
build: ./images/hive-metastore
ports:
- 9083:9083
depends_on:
- postgres
networks:
- my_network
restart: always
spark-master:
container_name: spark-master
build: ./images/spark
ports:
- "5050:5050"
- "7077:7077"
depends_on:
- postgres
networks:
- my_network
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
- SPARK_LOCAL_IP=spark-master
command: usr/local/spark/bin/spark-class org.apache.spark.deploy.master.Master --ip spark-master --port 7077 --webui-port 5050
spark-worker-a:
container_name: spark-worker-a
build: ./images/spark
depends_on:
- spark-master
networks:
- my_network
ports:
- "5051:5051"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
- SPARK_LOCAL_IP=spark-worker-a
command: usr/local/spark/bin/spark-class org.apache.spark.deploy.worker.Worker --webui-port 5051 spark://spark-master:7077
spark-worker-b:
container_name: spark-worker-b
build: ./images/spark
depends_on:
- spark-master
networks:
- my_network
ports:
- "5052:5052"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
- SPARK_LOCAL_IP=spark-worker-b
command: usr/local/spark/bin/spark-class org.apache.spark.deploy.worker.Worker --webui-port 5052 spark://spark-master:7077
workspace:
container_name: workspace
build: ./images/workspace
depends_on:
- spark-master
networks:
- my_network
ports:
- "8888:8888"
- "4040:4040"
volumes:
- ./work:/usr/local/spark_dev/work
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
command: jupyter lab --port 8888 --LabApp.token=''
trino:
container_name: trino
build: ./images/trino
depends_on:
- hive-metastore
networks:
- my_network
ports:
- "8080:8080"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
networks:
my_network:
driver: bridge
name: my_network