Skip to content

Commit c83e59d

Browse files
committed
fix: api 서버와 websocket 분리를 위해 backend 서버 네임 변경
1 parent 3b9d4ad commit c83e59d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+18
-117
lines changed

docker-compose.override.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ services:
2222
timeout: 5s
2323
retries: 3
2424
command: --bind-address=0.0.0.0
25-
backend:
25+
api:
2626
build:
2727
context: .
28-
dockerfile: ./packages/backend/Dockerfile
29-
container_name: backend
28+
dockerfile: ./packages/api/Dockerfile
29+
container_name: api
3030
ports:
3131
- "3000:3000"
3232
- "9001:9001"
@@ -58,7 +58,7 @@ services:
5858
ports:
5959
- "80:80"
6060
depends_on:
61-
backend:
61+
api:
6262
condition: service_started
6363
networks:
6464
- app-network

docker-compose.prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ services:
1616
timeout: 5s
1717
retries: 3
1818

19-
backend:
20-
container_name: backend
19+
api:
20+
container_name: api
2121
ports:
2222
- "3000:3000"
2323
build:
@@ -45,7 +45,7 @@ services:
4545
frontend:
4646
container_name: frontend
4747
depends_on:
48-
backend:
48+
api:
4949
condition: service_started
5050
ports:
5151
- "80:80"

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
2-
backend:
2+
api:
33
build:
44
context: .
5-
dockerfile: ./packages/backend/Dockerfile
5+
dockerfile: ./packages/api/Dockerfile
66
restart: unless-stopped
77
environment:
88
- NODE_ENV=development

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"private": "true",
66
"scripts": {
7-
"lint": "eslint --filter \"frontend,backend\" lint",
7+
"lint": "eslint --filter \"frontend,api\" lint",
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"prepare": "husky"
1010
},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ WORKDIR /app
44

55
RUN apk add --no-cache python3 make g++ && npm install -g pnpm
66
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
7-
COPY ./packages/backend ./packages/backend/
7+
COPY ./packages/api ./packages/api/
88
COPY ./packages/shared ./packages/shared/
99

1010
RUN HUSKY=0 pnpm install --frozen-lockfile
1111

12-
RUN cd ./packages/backend && pnpm build
12+
RUN cd ./packages/api && pnpm build
1313

1414
FROM node:20-alpine AS production
1515

1616
WORKDIR /app
1717

1818
COPY --from=builder /app .
1919

20-
WORKDIR /app/packages/backend
20+
WORKDIR /app/packages/api
2121

2222
EXPOSE 3000
2323

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "backend",
2+
"name": "api",
33
"version": "0.0.1",
44
"description": "",
55
"author": "",
@@ -11,7 +11,7 @@
1111
"start": "nest start",
1212
"start:dev": "nest start --watch",
1313
"start:debug": "nest start --debug --watch",
14-
"start:prod": "node dist/backend/src/main.js",
14+
"start:prod": "node dist/api/src/main.js",
1515
"test": "jest",
1616
"test:watch": "jest --watch",
1717
"test:cov": "jest --coverage",

0 commit comments

Comments
 (0)