@@ -7,6 +7,10 @@ services:
7
7
- API_GATEWAY_PORT=$API_GATEWAY_PORT
8
8
environment :
9
9
- PORT=$FRONTEND_PORT
10
+ ports :
11
+ - $FRONTEND_PORT:$FRONTEND_PORT
12
+ networks :
13
+ - hidden
10
14
11
15
question-service :
12
16
build :
@@ -15,6 +19,10 @@ services:
15
19
- PORT=$QUESTION_SVC_PORT
16
20
- DB_URI=$QUESTION_SVC_DB_URI
17
21
- FRONTEND_PORT=$FRONTEND_PORT
22
+ ports :
23
+ - $QUESTION_SVC_PORT:$QUESTION_SVC_PORT
24
+ networks :
25
+ - hidden
18
26
19
27
user-service :
20
28
build :
@@ -25,6 +33,10 @@ services:
25
33
- JWT_SECRET=$JWT_SECRET
26
34
- EMAIL_ADDRESS=$EMAIL_ADDRESS
27
35
- EMAIL_PASSWORD=$EMAIL_PASSWORD
36
+ ports :
37
+ - $USER_SVC_PORT:$USER_SVC_PORT
38
+ networks :
39
+ - hidden
28
40
29
41
matching-service :
30
42
build :
@@ -35,10 +47,14 @@ services:
35
47
- REDIS_PORT=$REDIS_PORT
36
48
- QUESTION_SVC_PORT=$QUESTION_SVC_PORT
37
49
- COLLAB_SVC_PORT=$COLLAB_SVC_PORT
50
+ ports :
51
+ - $MATCHING_SVC_PORT:$MATCHING_SVC_PORT
38
52
depends_on :
39
53
- redis
40
54
- question-service
41
55
- collab-service
56
+ networks :
57
+ - hidden
42
58
43
59
api-gateway :
44
60
image : nginx:1.26
@@ -60,22 +76,17 @@ services:
60
76
- question-service
61
77
- matching-service
62
78
- collab-service
79
+ networks :
80
+ - gateway
81
+ - hidden
63
82
64
83
redis :
65
84
image : redis:7.4-alpine
66
85
restart : always
67
86
ports :
68
87
- $REDIS_PORT:$REDIS_PORT
69
-
70
- # access RedisInsight at http://localhost:5540
71
- # connect to redis on redis insight at redis:6379
72
- redisinsight :
73
- image : redis/redisinsight:latest
74
- restart : always
75
- ports :
76
- - $REDIS_INSIGHT_PORT:$REDIS_INSIGHT_PORT # Expose RedisInsight UI on port 5540
77
- depends_on :
78
- - redis
88
+ networks :
89
+ - hidden
79
90
80
91
collab-service :
81
92
build :
@@ -84,3 +95,13 @@ services:
84
95
- PORT=$COLLAB_SVC_PORT
85
96
- DB_URI=$COLLAB_SVC_DB_URI
86
97
- OPENAI_API_KEY=$OPENAI_API_KEY
98
+ ports :
99
+ - $COLLAB_SVC_PORT:$COLLAB_SVC_PORT
100
+ networks :
101
+ - hidden
102
+
103
+ networks :
104
+ gateway :
105
+
106
+ hidden :
107
+ internal : true
0 commit comments