diff --git a/anaconda/.env.template b/anaconda/.env.template new file mode 100644 index 0000000..84405f0 --- /dev/null +++ b/anaconda/.env.template @@ -0,0 +1,2 @@ +NOTEBOOKS_PATH=~/code/jupyter_notebooks +JUPYTER_PORT=8888 diff --git a/anaconda/.gitignore b/anaconda/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/anaconda/.gitignore @@ -0,0 +1 @@ +.env diff --git a/anaconda/Dockerfile b/anaconda/Dockerfile new file mode 100644 index 0000000..221e83e --- /dev/null +++ b/anaconda/Dockerfile @@ -0,0 +1,8 @@ +FROM continuumio/anaconda3 + +EXPOSE 8888 + +RUN conda install jupyter -y && \ + mkdir -p /opt/notebooks + +ENTRYPOINT ["jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip='*'", "--port=8888", "--allow-root", "--NotebookApp.token=''"] diff --git a/anaconda/docker-compose.yml b/anaconda/docker-compose.yml new file mode 100644 index 0000000..14c2eef --- /dev/null +++ b/anaconda/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' + +services: + anaconda: + build: . + restart: unless-stopped + ports: + - '${JUPYTER_PORT}:8888' + volumes: + - ${NOTEBOOKS_PATH}:/opt/notebooks