Created
June 18, 2022 23:10
-
-
Save hkiang01/a9b67994b982b95a01b589316021ab63 to your computer and use it in GitHub Desktop.
jupyter notebook mounted as non-root user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
jupyter: | |
image: jupyter/base-notebook:python-3.10.4 | |
environment: | |
NB_USER: appuser | |
NB_UID: "${UID}" | |
NB_GID: "${GID}" | |
CHOWN_HOME: 'yes' | |
CHOWN_HOME_OPTS: '-R' | |
JUPYTER_ENABLE_LAB: 'yes' | |
ports: | |
- 8888:8888 | |
user: "${UID}" | |
working_dir: "/home/appuser" | |
volumes: | |
- ./:/home/appuser/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options