diff options
author | Stefan <service@stefanproell.at> | 2018-08-08 08:14:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 08:14:32 +0000 |
commit | e76c5baf72f8860a6ced7aa7c21a109f9ff24bca (patch) | |
tree | cfef76c2916c89eb724cf151d4388cfb642637e1 /README.md | |
parent | Adds a docker--compose file and an environment file for launching Jupyter Not... (diff) | |
download | jupyter-notebook-docker-compose-e76c5baf72f8860a6ced7aa7c21a109f9ff24bca.tar.gz jupyter-notebook-docker-compose-e76c5baf72f8860a6ced7aa7c21a109f9ff24bca.zip |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -28,7 +28,27 @@ services: --NotebookApp.certfile=/etc/ssl/notebook/jupyter.pem" ``` +## Example with a custom user +```YAML +version: '2' +services: + datascience-notebook: + image: jupyter/base-notebook:latest + volumes: + - /tmp/jupyter_test_dir:/home/docker_worker/work + ports: + - 8891:8888 + command: "start-notebook.sh" + user: root + environment: + NB_USER: docker_worker + NB_UID: 1008 + NB_GID: 1011 + CHOWN_HOME: 'yes' + CHOWN_HOME_OPTS: -R + +``` ## The environment file .env ```bash |