Skip to content

Commit 0a5264b

Browse files
fix: port mapping for api and api docker solution (#72)
1 parent 630dc72 commit 0a5264b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/api/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
context: .
88
dockerfile: Dockerfile
99
ports:
10-
- '127.0.0.1:${SERVER_PORT}:3000'
10+
- '127.0.0.1:${SERVER_PORT}:${SERVER_PORT}'
1111
depends_on:
1212
- transcript-summarizer-mariadb
1313
- transcript-summarizer-redis

apps/api/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function bootstrap(): Promise<void> {
4747
app.useGlobalFilters(new HttpExceptionFilter(new JsendFormatter()));
4848
// TODO: Update origin as needed
4949
app.enableCors({ origin: '*', credentials: true });
50-
await app.listen(3000);
50+
await app.listen(configService.getOrThrow('SERVER_PORT'));
5151
}
5252

5353
bootstrap();

0 commit comments

Comments
 (0)