-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (97 loc) · 2.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.8'
services:
frontend:
image: cs3219g2/frontend
ports:
- "3000:3000"
environment:
REACT_APP_QN_SERVER_IP: ${REACT_APP_QN_SERVER_IP}
REACT_APP_QN_SERVER_PORT: ${REACT_APP_QN_SERVER_PORT}
REACT_APP_USER_SERVER_IP: ${REACT_APP_USER_SERVER_IP}
REACT_APP_USER_SERVER_PORT: ${REACT_APP_USER_SERVER_PORT}
REACT_APP_MATCH_SERVER_IP: ${REACT_APP_MATCH_SERVER_IP}
REACT_APP_MATCH_SERVER_PORT: ${REACT_APP_MATCH_SERVER_PORT}
REACT_APP_COLLAB_SERVER_IP: ${REACT_APP_COLLAB_SERVER_IP}
REACT_APP_COLLAB_SERVER_PORT: ${REACT_APP_COLLAB_SERVER_PORT}
REACT_APP_CHAT_SERVER_IP: ${REACT_APP_CHAT_SERVER_IP}
REACT_APP_CHAT_SERVER_PORT: ${REACT_APP_CHAT_SERVER_PORT}
user-service:
image: cs3219g2/userservice
ports:
- "8000:8000"
depends_on:
- usermongo
- userredis
environment:
ENV: ${ENV}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
USER_MONGO_IP: ${USER_MONGO_IP}
USER_MONGO_PORT: ${USER_MONGO_PORT}
USER_REDIS_IP: ${USER_REDIS_IP}
USER_REDIS_PORT: ${USER_REDIS_PORT}
DB_LOCAL_URI: ${DB_LOCAL_URI}
matching-service:
image: cs3219g2/matchservice
ports:
- "8001:8001"
environment:
QN_SERVER_IP: ${QN_SERVER_IP}
QN_SERVER_PORT: ${QN_SERVER_PORT}
collab-service:
image: cs3219g2/collabservice
ports:
- "8002:8002"
depends_on:
- collabredis
environment:
COLLAB_REDIS_IP: ${COLLAB_REDIS_IP}
COLLAB_REDIS_PORT: ${COLLAB_REDIS_PORT}
chatservice:
image: cs3219g2/chatservice
ports:
- "8005:8005"
depends_on:
- chatmongo
environment:
ENV: ${ENV}
CHAT_MONGO_IP: ${CHAT_MONGO_IP}
CHAT_MONGO_PORT: ${CHAT_MONGO_PORT}
DB_LOCAL_URI: ${DB_LOCAL_URI}
questionservice:
image: cs3219g2/questionservice
ports:
- "5200:5200"
depends_on:
- questionmongo
environment:
QN_MONGO_PORT: ${QN_MONGO_PORT}
QN_MONGO_IP: ${QN_MONGO_IP}
chatmongo:
image: mongo:latest
command: mongod --port 27018
ports:
- "27018:27018"
questionmongo:
image: mongo:latest
command: mongod --port 27019
ports:
- "27019:27019"
mongo-seed:
image: cs3219g2/questionseed
depends_on:
- questionmongo
usermongo:
image: mongo:latest
command: mongod --port 27020
ports:
- "27020:27020"
userredis:
image: redis:4.0.10
command: --port 6380
ports:
- "6380:6380"
collabredis:
image: redis:4.0.10
command: --port 6381
ports:
- "6381:6381"