From 73c5b50daed7fa7f96944369b0199ea8e0b11ec6 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 15 Nov 2022 22:06:34 -0800 Subject: [PATCH] Bound ports to loopback for security --- jupyter/docker-compose.yml | 2 +- syncthing/docker-compose.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jupyter/docker-compose.yml b/jupyter/docker-compose.yml index 5905449..f1e4f7b 100644 --- a/jupyter/docker-compose.yml +++ b/jupyter/docker-compose.yml @@ -12,4 +12,4 @@ services: # host:container ports: - - "8888:8888" + - "127.0.0.1:8888:8888" diff --git a/syncthing/docker-compose.yml b/syncthing/docker-compose.yml index d5b28f2..b1a8388 100644 --- a/syncthing/docker-compose.yml +++ b/syncthing/docker-compose.yml @@ -11,5 +11,7 @@ services: - "./stconfig:/stconfig" ports: - - "8384:8384" - - "22067:22067" \ No newline at end of file + - "127.0.0.1:8384:8384" + # Only uncomment if you need a relay + # TODO: envvar to disable relay + #- "22067:22067" \ No newline at end of file