From e5330d678f4533b659d5f231c9c8d82fd4735146 Mon Sep 17 00:00:00 2001 From: Coal Date: Fri, 7 Oct 2022 13:18:06 -0600 Subject: [PATCH] Expose port 80 for the christmas-community service (#32) * Expose port 80 for the christmas-community service If the app is ran with docker-compose, the express server (port 80) should be open as well * Change default ports to 3000 and 8080 for Express and DB respectively Also modified the initial config to include a default DB port if not provided in the env * Forward only port 80 and don't expose database by default in the config file Database is still being exposed through the Dockerfile, as it already was * Restore formatting for config/index.js --- docker-compose.debug.yml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml index 5bed53f..6add26f 100644 --- a/docker-compose.debug.yml +++ b/docker-compose.debug.yml @@ -7,6 +7,6 @@ services: environment: NODE_ENV: development ports: - - 3000:3000 + - 80:80 - 9229:9229 command: node --inspect=0.0.0.0:9229 index.js \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 35ea965..38878c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,4 @@ services: environment: NODE_ENV: production ports: - - 3000:3000 \ No newline at end of file + - 80:80 \ No newline at end of file