-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (37 loc) · 1.06 KB
/
docker-compose.yaml
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
version: '3.7'
services:
spark-master:
image: bitnami/spark:3.5.1
command: bin/spark-class org.apache.spark.deploy.master.Master
ports:
- 8080:8080
- 7077:7077
volumes:
- ./conf/spark-defaults.conf:/opt/bitnami/spark/conf/spark-defaults.conf
- ./app:/app # persistent storage
spark-worker:
image: bitnami/spark:3.5.1
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://spark-master:7077
depends_on:
- spark-master
environment:
SPARK_MODE: worker
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 2g
SPARK_MASTER_URL: spark://spark-master:7077
volumes:
- ./conf/spark-defaults.conf:/opt/bitnami/spark/conf/spark-defaults.conf
- ./app:/app # persistent storage
jupyter-local:
depends_on:
- spark-master
build: .
command: python -m jupyterlab --ip "0.0.0.0" --no-browser --NotebookApp.token=''
ports:
- 8888:8888
volumes:
- ./app:/app # persistent storage
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
spark-logs: