services: add Jupyter Lab

This commit is contained in:
Bruno BELANYI 2020-07-30 19:18:36 +02:00
parent a3845f7712
commit 0a61fde0ff
5 changed files with 87 additions and 0 deletions

View file

@ -364,3 +364,21 @@ services:
env_file:
- ./recipes/recipes.env
- ./recipes/recipes.env.secret
jupyter:
image: jupyter/datascience-notebook:lab-2.1.5
restart: unless-stopped
container_name: jupyter
volumes:
- ./jupyter/notebooks:/home/jovyan/
- ./jupyter/hooks/:/usr/local/bin/start-notebook.d/
environment:
- JUPYTER_ENABLE_LAB=yes
- NB_UID=1000
- NB_GID=1000
- CHOWN_HOME=yes
- GRANT_SUDO=yes
- RESTARTABLE=yes
expose:
- 8888
user: root