volumes now mounted with correct permissions

This commit is contained in:
Michael Pilosov 2019-01-02 21:19:52 +00:00
parent 312ed0188e
commit 5b0d688437
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
# Bind Docker volume on host for JupyterHub database and cookie secrets
- "data:${DATA_VOLUME_CONTAINER}"
- "./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py"
ports:
- "8000:8000"
links:

View File

@ -38,7 +38,7 @@ c.DockerSpawner.notebook_dir = notebook_dir
# c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir }
c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir, # this connects volumes
'/home/michael/repos/packages/lyricalart':'/home/jovyan/work/shared' }
'/home/michael/repos/packages':'/home/jovyan/work/shared' }
# volume_driver is no longer a keyword argument to create_container()
# c.DockerSpawner.extra_create_kwargs.update({ 'volume_driver': 'local' })