From b9f682026427e03f4f33d93fe5de4dce664b9b7b Mon Sep 17 00:00:00 2001 From: Math Crypto Date: Fri, 1 Dec 2023 20:47:39 +0100 Subject: [PATCH] Bind non-public ports to localhost Except for frontend http port (30001) and p2p port (30000), the rest can be bound to localhost. --- docker/docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 161d3c3..f389593 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -15,7 +15,7 @@ services: image: redis restart: unless-stopped ports: - - '6379:6379' + - '127.0.0.1:6379:6379' ibp-datastore: container_name: ibp-datastore image: mariadb:10.11.2 @@ -26,7 +26,7 @@ services: - MARIADB_PASSWORD=ibp_monitor - MARIADB_DATABASE=ibp_monitor ports: - - '3306:3306' + - '127.0.0.1:3306:3306' volumes: - ../data/mariadb:/var/lib/mysql wait-for-datastore-ready: @@ -57,7 +57,7 @@ services: ibp-datastore-init: condition: service_completed_successfully ports: - - '30002:30002' + - '127.0.0.1:30002:30002' command: > bash -c "node api.js" volumes: @@ -96,7 +96,7 @@ services: wait-for-ibp-server-ready: condition: service_completed_successfully ports: - - '3000:3000' + - '127.0.0.1:3000:3000' command: > bash -c "node workers.js" wait-for-ibp-api-ready: