Skip to content

Commit 6042804

Browse files
committed
Add .env.sample for DB and Port
1 parent d04f885 commit 6042804

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.env.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ EMAIL_PASSWORD=
2222
## Matching service variables
2323
MATCHING_SVC_PORT=6969
2424

25+
## Collab service variables
26+
COLLAB_SVC_PORT=3002
27+
COLLAB_SVC_DB_URI=
28+
2529
## Redis variables
2630
REDIS_PORT=6379
2731

collab-service/app/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import index from "./index.js";
44
import { Server } from "socket.io";
55
import { addMessageToChat } from "./model/repository.js";
66

7-
const PORT = process.env.PORT || 5000;
7+
const PORT = process.env.PORT || 3002;
88
const server = http.createServer(index);
99

1010
const io = new Server(server, {

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ services:
7070
build:
7171
context: ./collab-service
7272
ports:
73-
- 5000:5000
73+
- $COLLAB_SVC_PORT:$COLLAB_SVC_PORT
7474
environment:
75-
- PORT=5000
76-
# - DB_URI=$CLOUD_MONGO_URI
75+
- PORT=$COLLAB_SVC_PORT
76+
- DB_URI=$COLLAB_SVC_DB_URI

0 commit comments

Comments
 (0)