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
This commit is contained in:
parent
d3f85afa1d
commit
e5330d678f
2 changed files with 2 additions and 2 deletions
|
@ -7,6 +7,6 @@ services:
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 80:80
|
||||||
- 9229:9229
|
- 9229:9229
|
||||||
command: node --inspect=0.0.0.0:9229 index.js
|
command: node --inspect=0.0.0.0:9229 index.js
|
|
@ -7,4 +7,4 @@ services:
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 80:80
|
Loading…
Reference in a new issue