Skip to content

Commit 912e840

Browse files
committed
feat: 도커 네트워크 모드 수정
1 parent 1e8a4bd commit 912e840

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
@@ -86,7 +86,7 @@ jobs:
8686
8787
- name: 🐳 media 컨테이너 실행
8888
run: |
89-
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 }}
89+
docker run -dit --network host --name media ${{secrets.DOCKER_REGISTRY_URL}}/media:${{ github.sha }}
9090
9191
- name: 🐳 사용하지 않는 Docker 이미지 제거
9292
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)