From e295da6b669c8a5c1d84fa65daef8efba57f2d23 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Fri, 18 Oct 2024 15:35:34 -0400 Subject: [PATCH] only listen on 127.0.0.1 to restrict connections on localhost --- user_local_jupyter_environment/1.7.0/docker-compose.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/user_local_jupyter_environment/1.7.0/docker-compose.yml b/user_local_jupyter_environment/1.7.0/docker-compose.yml index caf890a..5a30ed7 100644 --- a/user_local_jupyter_environment/1.7.0/docker-compose.yml +++ b/user_local_jupyter_environment/1.7.0/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3' services: fabric-default: @@ -7,7 +6,7 @@ services: healthcheck: disable: true ports: - - "8888:8888" + - "127.0.0.1:8888:8888" volumes: - ~/work/:/home/fabric/work environment: @@ -18,7 +17,6 @@ services: - "/bin/sh" - "-c" - | - #/opt/conda/bin/pip install --ignore-installed --no-cache-dir fabrictestbed-extensions==1.7.3 /opt/conda/bin/python3.11 /opt/conda/lib/python3.11/site-packages/jupyternb/jupyter_startup.py pip install nbresuse start-notebook.sh --ServerApp.token='' @@ -29,7 +27,7 @@ services: healthcheck: disable: true ports: - - "8888:8888" + - "127.0.0.1:8888:8888" volumes: - ~/work/:/home/fabric/work environment: @@ -52,7 +50,7 @@ services: healthcheck: disable: true ports: - - "8888:8888" + - "127.0.0.1:8888:8888" volumes: - ~/work/:/home/fabric/work environment: