From cdde28be052da0ebdf3732105b7c0643d405da6d Mon Sep 17 00:00:00 2001 From: Deki Akbar Date: Wed, 7 Feb 2024 18:43:25 +0700 Subject: [PATCH] only bind to localhost if production mode --- docker-compose.prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 20178be..0f3a2b9 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,4 +1,6 @@ version: "3" services: node: + ports: + - "127.0.0.1:${PORT}:${PORT}" command: bash -c "npm install && npm run build && npm run start:prod" \ No newline at end of file