File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed
Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN yarn install
1313
1414# 소스 코드는 볼륨으로 마운트할 예정이므로 COPY 불필요
1515
16- EXPOSE 3000 1234
16+ EXPOSE 3000
1717
1818# 개발 모드로 실행
1919CMD ["yarn", "dev"]
Original file line number Diff line number Diff line change @@ -47,13 +47,18 @@ server {
4747 proxy_cache_bypass $http_upgrade;
4848 }
4949
50- # WebSocket
50+ # WebSocket for YJS
5151 location /socket.io {
52- proxy_pass http://backend:1234 ;
52+ proxy_pass http://websocket:4242 ;
5353 proxy_http_version 1.1;
5454 proxy_set_header Upgrade $http_upgrade;
5555 proxy_set_header Connection "Upgrade";
5656 proxy_set_header Host $host;
57+
58+ # WebSocket 연결 안정성을 위한 추가 설정
59+ proxy_read_timeout 3600s;
60+ proxy_send_timeout 3600s;
61+ proxy_buffering off;
5762 }
5863
5964 # Vite static assets
Original file line number Diff line number Diff line change 1+ FROM node:20-alpine
2+
3+ WORKDIR /app
4+
5+ # Install dependencies
6+ COPY package.json yarn.lock ./
7+ RUN yarn install
8+
9+ # Copy source
10+ COPY . .
11+
12+ # Install app dependencies
13+ WORKDIR /app/apps/websocket
14+ RUN yarn install
15+
16+ EXPOSE 4242
17+
18+ # Start the application
19+ CMD ["yarn", "dev"]
Original file line number Diff line number Diff line change @@ -4524,7 +4524,7 @@ autoprefixer@^10.4.20:
45244524 picocolors "^1.0.1"
45254525 postcss-value-parser "^4.2.0"
45264526
4527- axios@^1.7.7:
4527+ axios@^1.7.7, axios@^1.7.8 :
45284528 version "1.7.8"
45294529 resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.8.tgz#1997b1496b394c21953e68c14aaa51b7b5de3d6e"
45304530 integrity sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==
You can’t perform that action at this time.
0 commit comments