Durcir Jupyter : utilisateur non root, token généré, input en lecture seule
This commit is contained in:
@ -65,14 +65,18 @@ services:
|
|||||||
image: lidar-lidar
|
image: lidar-lidar
|
||||||
container_name: lidar-jupyter
|
container_name: lidar-jupyter
|
||||||
init: true
|
init: true
|
||||||
|
user: "1000:1000"
|
||||||
ports:
|
ports:
|
||||||
- "8888:8888"
|
- "8888:8888"
|
||||||
volumes:
|
volumes:
|
||||||
- ./input:/data/input
|
- ./input:/data/input:ro # exploration seule : pas d'écriture dans input/
|
||||||
- ./output:/data/output
|
- ./output:/data/output
|
||||||
- ./notebooks:/workspace
|
- ./notebooks:/workspace
|
||||||
|
# Pas de token vide : Jupyter en génère un et l'affiche (URL de login)
|
||||||
|
# dans `docker compose logs jupyter` — le port 8888 reste protégé.
|
||||||
command: >
|
command: >
|
||||||
bash -c "pip install jupyter && \
|
bash -c "pip install --user jupyter && \
|
||||||
jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token=''"
|
python3 -m notebook --ip=0.0.0.0 --port=8888 --no-browser \
|
||||||
|
--notebook-dir=/workspace"
|
||||||
profiles:
|
profiles:
|
||||||
- interactive
|
- interactive
|
||||||
|
|||||||
Reference in New Issue
Block a user