Skip to content

Commit

Permalink
fix(docker): change default port to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoeurderoy committed Oct 11, 2022
1 parent a8a756f commit a0c8b99
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ RUN npm ci
USER node

# Set NODE_ENV to production and open
ENV PORT 3000
ENV DEPLOYMENT 'production.secret'

EXPOSE 3000
EXPOSE 8080

CMD [ "node", "dist/main.js"]
4 changes: 2 additions & 2 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"restHooksSecret": "password",
"enableHttpRequestLog": true,
"enableHttpResponseLog": false,
"enableHttpResponseLog": true,
"enableHttpErrorLog": true,
"port": 3000,
"port": 8080,
"openBankingDataFormat": "TINK_V2"
}
9 changes: 5 additions & 4 deletions json-server/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"createdAt": "2020-09-09T09:36:36.630+0000",
"scope": "*",
"config": {
"clientId": "clientId",
"clientSecret": "clientSecret",
"clientId": "3eb608f48aa9446db65a814c44cb3df2",
"clientSecret": "b1edb0a091664aa594cab965e5647285",
"market": "FR",
"locale": "fr_FR",
"realDataTest": true,
"pricing": "STANDARD"
"realDataTest": false,
"pricing": "STANDARD",
"useTinkV2": true
}
}
],
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HttpExceptionFilter } from '@algoan/nestjs-http-exception-filter';
import { NestFactory } from '@nestjs/core';
import { INestApplication, Logger, ValidationPipe } from '@nestjs/common';
import { config } from 'node-config-ts';
import { WinstonModule } from 'nest-winston';
import { format, transports } from 'winston';

Expand All @@ -12,7 +13,7 @@ const logger: Logger = new Logger(__filename);
* Bootstrap method
*/
const bootstrap = async (): Promise<void> => {
const port: number = 3000;
const port: number = config.port;
const defaultLevel: string = process.env.DEBUG_LEVEL ?? 'info';
const nodeEnv: string | undefined = process.env.NODE_ENV;

Expand Down

0 comments on commit a0c8b99

Please sign in to comment.