aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorStefan <service@stefanproell.at>2018-08-08 08:14:32 +0000
committerGitHub <noreply@github.com>2018-08-08 08:14:32 +0000
commite76c5baf72f8860a6ced7aa7c21a109f9ff24bca (patch)
treecfef76c2916c89eb724cf151d4388cfb642637e1 /README.md
parentAdds a docker--compose file and an environment file for launching Jupyter Not... (diff)
downloadjupyter-notebook-docker-compose-e76c5baf72f8860a6ced7aa7c21a109f9ff24bca.tar.gz
jupyter-notebook-docker-compose-e76c5baf72f8860a6ced7aa7c21a109f9ff24bca.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 09c333e..0cdd70d 100644
--- a/README.md
+++ b/README.md
@@ -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