Last active
June 7, 2019 19:36
-
-
Save garystafford/9b0b596e1ae82d7a073fbf96b571defb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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