Skip to content

Instantly share code, notes, and snippets.

@vndee
Created September 9, 2021 15:30
Show Gist options
  • Save vndee/7c2d7113b273ade0e89de5d58f17b04c to your computer and use it in GitHub Desktop.
Save vndee/7c2d7113b273ade0e89de5d58f17b04c to your computer and use it in GitHub Desktop.
version: "3.6"
volumes:
shared-workspace:
name: "hadoop-distributed-file-system"
driver: local
services:
jupyterlab:
image: jupyterlab
container_name: jupyterlab
ports:
- 8888:8888
- 4040:4040
networks:
- spark-network
volumes:
- shared-workspace:/opt/workspace
spark-master:
image: spark-master
container_name: spark-master
ports:
- 8080:8080
- 7077:7077
networks:
- spark-network
volumes:
- shared-workspace:/opt/workspace
spark-worker-1:
image: spark-worker
container_name: spark-worker-1
environment:
- SPARK_WORKER_CORES=2
- SPARK_WORKER_MEMORY=2g
ports:
- 8081:8081
networks:
- spark-network
volumes:
- shared-workspace:/opt/workspace
depends_on:
- spark-master
spark-worker-2:
image: spark-worker
container_name: spark-worker-2
environment:
- SPARK_WORKER_CORES=2
- SPARK_WORKER_MEMORY=2g
ports:
- 8082:8081
networks:
- spark-network
volumes:
- shared-workspace:/opt/workspace
depends_on:
- spark-master
networks:
spark-network:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment