Skip to content

Commit 48f4977

Browse files
committed
Dockerise CollabService
1 parent 30401f4 commit 48f4977

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Backend/CollabService/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:20
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
RUN npm install
7+
8+
COPY . .
9+
10+
EXPOSE 3004
11+
CMD ["npm", "start"]

Backend/MatchingService/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ RUN npm install
77

88
COPY . .
99

10-
EXPOSE 3003
10+
EXPOSE 8080
1111
CMD ["npm", "start"]

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ services:
2020
ports:
2121
- "8080:8080"
2222

23+
collab-service:
24+
build:
25+
context: ./Backend/CollabService
26+
dockerfile: Dockerfile
27+
ports:
28+
- "3004:3004" # change the first port number xxxx:3004 to suit your needs
29+
2330
frontend:
2431
build:
2532
context: ./Frontend

0 commit comments

Comments
 (0)