Skip to content

Instantly share code, notes, and snippets.

@danilo-alm
Created April 6, 2026 14:36
Show Gist options
  • Select an option

  • Save danilo-alm/c976321df50674d0acc335cd5e271331 to your computer and use it in GitHub Desktop.

Select an option

Save danilo-alm/c976321df50674d0acc335cd5e271331 to your computer and use it in GitHub Desktop.
Docker setup for studying Apache Spark
services:
spark-master:
image: bitnamilegacy/spark:3.5.0-debian-12-r17
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
volumes:
- ./notebooks:/home/jovyan/work
ports:
- "8080:8080"
- "7077:7077"
spark-worker-1:
image: bitnamilegacy/spark:3.5.0-debian-12-r17
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://spark-master:7077
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
volumes:
- ./notebooks:/home/jovyan/work
depends_on:
- spark-master
jupyter:
image: jupyter/pyspark-notebook:spark-3.5.0
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/work
command: start.sh jupyter notebook --NotebookApp.token=''
environment:
- JUPYTER_ENABLE_LAB=yes
depends_on:
- spark-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment