Skip to content

Commit 74d958b

Browse files
authored
Merge pull request #4 from boostcampwm-2024/feat/#3/docker-network-change
[Fix] 포트 포워딩 갯수가 많아지면 서버가 터지던 문제 수정
2 parents ac8e63b + 912e840 commit 74d958b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/back-media-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: 🐳 media 컨테이너 실행
9999
run: |
100-
docker run -dit --name media -p 3002:3002 -p 30000-30500:30000-30500/tcp -p 30000-30500:30000-30500/udp ${{secrets.DOCKER_REGISTRY_URL}}/media:${{ github.sha }}
100+
docker run -dit --network host --name media ${{secrets.DOCKER_REGISTRY_URL}}/media:${{ github.sha }}
101101
102102
- name: 🐳 사용하지 않는 Docker 이미지 제거
103103
run: |

apps/media/src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ async function bootstrap() {
88

99
const configService = app.get(ConfigService);
1010
const port = configService.get<number>('MEDIA_SERVER_PORT') ?? 8080;
11-
12-
await app.listen(port);
11+
await app.listen(port, '0.0.0.0');
1312
}
1413
bootstrap();

0 commit comments

Comments
 (0)