diff --git a/README.md b/README.md index d368fd7..250d1f2 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,13 @@ With [Papermill](https://github.com/nteract/papermill): - `papermill rescuetime_downloader.ipynb data/output.ipynb -p start_date '2019-08-14' -p end_date '2019-10-14'` - **NOTE**: You first need to [parameterize your notebook](https://github.com/nteract/papermill#parameterizing-a-notebook) in order pass parameters into commands. +With [docker-compose](https://docs.docker.com/compose/): + +- Installation of docker is required. +- This runs the Docker image [continuumio/anaconda3](https://hub.docker.com/r/continuumio/anaconda3). The current directory will be mounted to `/opt/notebooks`. +- Run `docker-compose up` in current directory. +- Point the browser to the shown URL. + #### Creators and Contributors: * [Mark Koester](https://github.com/markwk/) diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..2428351 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,13 @@ +version: '3.3' + +services: + + anaconda: + image: continuumio/anaconda3 + volumes: + - ./:/opt/notebooks + ports: + - "8888:8888" + command: + /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='0.0.0.0' --port=8888 --no-browser --allow-root" + tty: true