Skip to content

Commit 3cdc5ca

Browse files
committed
Updated compose.yaml and Dockerfile to expose port 8080 and prepare for GCP deployment.
1 parent 5bbed89 commit 3cdc5ca

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ services:
33
build:
44
context: ./collaboration-service/collaboration-service
55
image: lawruixi/collaboration-service:latest
6+
environment:
7+
- NODE_ENV=production
68
ports:
79
- "3004:3004"
810
env_file:
@@ -12,6 +14,8 @@ services:
1214
build:
1315
context: ./matching-service/matching-service
1416
image: lawruixi/matching-service:latest
17+
environment:
18+
- NODE_ENV=production
1519
ports:
1620
- "4001:4001"
1721
env_file:
@@ -21,6 +25,8 @@ services:
2125
build:
2226
context: ./question-service/question-service
2327
image: lawruixi/question-service:latest
28+
environment:
29+
- NODE_ENV=production
2430
ports:
2531
- "5050:5050"
2632
env_file:
@@ -30,6 +36,8 @@ services:
3036
build:
3137
context: ./user-service/user-service
3238
image: lawruixi/user-service:latest
39+
environment:
40+
- NODE_ENV=production
3341
ports:
3442
- "3001:3001"
3543
env_file:

question-service/question-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ USER node
3232
COPY . .
3333

3434
# Expose the port that the application listens on.
35-
EXPOSE 5050
35+
EXPOSE 8080
3636

3737
# Run the application.
3838
CMD npm start

0 commit comments

Comments
 (0)