File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ COLLAB_EXPRESS_DB_PORT=5434
10
10
MATCHING_PGDATA = " /data/collab-db"
11
11
MATCHING_EXPRESS_DB_PORT = 5434
12
12
13
- USER_CONTAINER_NAME = user-express
13
+ USER_SERVICE_NAME = user-express
14
14
USER_EXPRESS_ENV = compose
15
15
USER_EXPRESS_PORT = 9001
16
16
17
- QUESTION_CONTAINER_NAME = question-express
17
+ QUESTION_SERVICE_NAME = question-express
18
18
QUESTION_EXPRESS_ENV = compose
19
19
QUESTION_EXPRESS_PORT = 9002
20
20
Original file line number Diff line number Diff line change 2
2
3
3
services :
4
4
# Databases
5
-
6
5
user-db :
7
6
hostname : ' user-db'
8
7
image : postgres:16.4
@@ -56,6 +55,8 @@ services:
56
55
restart : unless-stopped
57
56
networks :
58
57
- question-db-network
58
+ ports :
59
+ - 5433:5432
59
60
healthcheck :
60
61
test : ['CMD-SHELL', 'pg_isready -U peerprep-qn-express -d question']
61
62
interval : 10s
@@ -64,17 +65,15 @@ services:
64
65
timeout : 10s
65
66
66
67
# Services
67
-
68
68
user-service :
69
69
image : ' user-express'
70
- container_name : ' user-express '
70
+ container_name : ' ${USER_SERVICE_NAME} '
71
71
build :
72
72
context : ./backend/user
73
73
dockerfile : express.Dockerfile
74
74
target : production
75
75
args :
76
76
# For building with the correct env vars
77
- - env=${USER_EXPRESS_ENV}
78
77
- port=${USER_EXPRESS_PORT}
79
78
ports :
80
79
- ' 9001:${USER_EXPRESS_PORT}'
@@ -115,7 +114,7 @@ services:
115
114
environment :
116
115
- VITE_USER_SERVICE=http://${USER_SERVICE_NAME}:${USER_EXPRESS_PORT}
117
116
# #to remove localhost once integrating question
118
- - VITE_QUESTION_SERVICE=http://localhost :${QUESTION_EXPRESS_PORT}
117
+ - VITE_QUESTION_SERVICE=http://host.docker.internal :${QUESTION_EXPRESS_PORT}
119
118
- FRONTEND_PORT=${FRONTEND_PORT}
120
119
depends_on :
121
120
user-service :
You can’t perform that action at this time.
0 commit comments