File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ services:
88 build : ./server
99 ports :
1010 - " 3000:3000" # development
11- - " 443:443 " # production HTTPS
11+ - " 443:3000 " # production HTTPS
1212 extra_hosts :
1313 - " host.docker.internal:host-gateway"
1414 volumes :
1515 - /etc/letsencrypt:/etc/letsencrypt:ro
16- environment :
17- - NODE_ENV=${NODE_ENV}
16+ env_file :
17+ - ./server/.env
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ if (process.env.NODE_ENV === 'production') {
5151 https . createServer ( {
5252 key : fs . readFileSync ( process . env . SSL_KEY_PATH ) ,
5353 cert : fs . readFileSync ( process . env . SSL_CERT_PATH )
54- } ) . listen ( 443 , ( ) => {
55- console . log ( `API is running on: http://localhost:443` )
54+ } ) . listen ( process . env . HTTPS_PORT , ( ) => {
55+ console . log ( `API is running on: http://localhost:${ process . env . HTTPS_PORT } ` ) ;
5656 } ) ;
5757} else {
5858 app . listen ( PORT , ( ) => {
You can’t perform that action at this time.
0 commit comments