From 93ac46393fe795bc35f8b1b9d36a11e47d0232ca Mon Sep 17 00:00:00 2001 From: Antoine Jacquin Date: Fri, 18 Sep 2026 21:14:09 +0200 Subject: [PATCH] =?UTF-8?q?Durcir=20Jupyter=20:=20utilisateur=20non=20root?= =?UTF-8?q?,=20token=20g=C3=A9n=C3=A9r=C3=A9,=20input=20en=20lecture=20seu?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 384ec82..6d9b522 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,14 +65,18 @@ services: image: lidar-lidar container_name: lidar-jupyter init: true + user: "1000:1000" ports: - "8888:8888" volumes: - - ./input:/data/input + - ./input:/data/input:ro # exploration seule : pas d'écriture dans input/ - ./output:/data/output - ./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: > - bash -c "pip install jupyter && \ - jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token=''" + bash -c "pip install --user jupyter && \ + python3 -m notebook --ip=0.0.0.0 --port=8888 --no-browser \ + --notebook-dir=/workspace" profiles: - interactive