Skip to content

Commit 086e363

Browse files
committed
PEER-214: Add fixes for docker-compose config
Signed-off-by: SeeuSim <[email protected]>
1 parent ee63a77 commit 086e363

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

backend/collaboration/src/controller/collab-controller.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { getCollabRoomService } from '@/service/get/collab-get-service';
2-
import { IGetCollabRoomPayload } from '@/service/get/types';
3-
import { Request, Response } from 'express';
1+
import type { Request, Response } from 'express';
42
import { StatusCodes } from 'http-status-codes';
53

4+
import { getCollabRoomService } from '@/service/get/collab-get-service';
5+
import type { IGetCollabRoomPayload } from '@/service/get/types';
6+
67
export async function getCollabRoom(req: Request, res: Response) {
78
const { userid1, userid2, questionid } = req.query;
89
const payload: IGetCollabRoomPayload = {

backend/collaboration/src/server.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import { exit } from 'process';
2+
13
import cors from 'cors';
24
import express, { json } from 'express';
35
import { StatusCodes } from 'http-status-codes';
46
import pino from 'pino-http';
7+
58
import { UI_HOST } from '@/config';
6-
import roomRoutes from '@/routes/room';
7-
import { logger } from '@/lib/utils';
89
import { config, db } from '@/lib/db';
9-
import { exit } from 'process';
10+
import { logger } from '@/lib/utils';
11+
import roomRoutes from '@/routes/room';
1012

1113
const app = express();
1214
app.use(pino());

docker-compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ services:
218218
environment:
219219
- VITE_USER_SERVICE=http://${USER_SERVICE_NAME}:${USER_EXPRESS_PORT}
220220
- VITE_QUESTION_SERVICE=http://${QUESTION_SERVICE_NAME}:${QUESTION_EXPRESS_PORT}
221+
- VITE_COLLAB_SERVICE=http://${COLLAB_SERVICE_NAME}:${COLLAB_EXPRESS_PORT}
221222
- VITE_MATCHING_SERVICE=http://${MATCHING_SERVICE_NAME}:${MATCHING_EXPRESS_PORT}
222223
- FRONTEND_PORT=${FRONTEND_PORT}
223224
depends_on:
@@ -230,6 +231,9 @@ services:
230231
collab-service:
231232
condition: service_healthy
232233
restart: true
234+
matching-service:
235+
condition: service_healthy
236+
restart: true
233237
networks:
234238
- user-api-network
235239
- question-api-network

0 commit comments

Comments
 (0)