Skip to content

Instantly share code, notes, and snippets.

@garystafford garystafford/stack.yml
Last active Jun 7, 2019

Embed
What would you like to do?
version: "3.7"
services:
pyspark:
image: jupyter/all-spark-notebook:latest
ports:
- "8888:8888/tcp"
- "4040:4040/tcp"
networks:
- pyspark-net
working_dir: /home/$USER/work
environment:
CHOWN_HOME: "yes"
GRANT_SUDO: "yes"
NB_UID: 1000
NB_GID: 100
NB_USER: $USER
NB_GROUP: staff
user: root
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- $PWD/work:/home/$USER/work
postgres:
image: postgres:11.3
environment:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres1234
POSTGRES_DB: demo
ports:
- "5432:5432/tcp"
networks:
- pyspark-net
volumes:
- $HOME/data/postgres:/var/lib/postgresql/data
deploy:
restart_policy:
condition: on-failure
adminer:
image: adminer:latest
ports:
- "8080:8080/tcp"
networks:
- pyspark-net
deploy:
restart_policy:
condition: on-failure
networks:
pyspark-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.