Skip to content

Instantly share code, notes, and snippets.

@tomfaulhaber
Created September 21, 2016 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomfaulhaber/bb3865ab174dd0587e2ef2d3a2caeb0b to your computer and use it in GitHub Desktop.
Save tomfaulhaber/bb3865ab174dd0587e2ef2d3a2caeb0b to your computer and use it in GitHub Desktop.
Docker compose file for OpenNEX access plus notebooks (use "docker-compose up")
version: "2"
services:
opennex:
image: planetos/opennex-access
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
CONFIG_DATA: "{ \"version\":2, \"config_source\": \"http://opennex.planetos.com/datasets\" }"
OPENNEX_PORT: "80"
rstudio:
image: rocker/hadleyverse
links:
- opennex
ports:
- "8787:8787"
volumes:
- ./notebooks:/home/rstudio
jupyter:
image: jupyter/scipy-notebook
links:
- opennex
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/work
@tomfaulhaber
Copy link
Author

Put a notebooks directory in the same directory as the docker-compose.yml file and all the files in that directory will be available to the RStudio and Jupyter sessions that you create. The Jupyter session doesn't require a password. For the rstudio session, use rstudio/rstudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment