generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
71 lines (67 loc) · 1.67 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
version: "3"
services:
user-service:
build:
context: ./user-service
environment:
- USR_SVC_PORT=${USR_SVC_PORT}
- SQL_HOST=${SQL_HOST}
- SQL_USERNAME=${SQL_USERNAME}
- SQL_PASSWORD=${SQL_PASSWORD}
- JWT_SECRET=${JWT_SECRET}
ports:
- 3003:3003
networks:
- service
question-service:
build:
context: ./question-service
environment:
- USR_SVC_AUTH=http://user-service:3003/api/auth
- QNS_SVC_PORT=${QNS_SVC_PORT}
- MONGO_HOST=${MONGO_HOST}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
ports:
- 3000:3000
depends_on:
- user-service
networks:
- service
matching-service:
build:
context: ./matching-service
environment:
- QNS_SVC=http://question-service:3000/api/questions
- USR_SVC_AUTH=http://user-service:3003/api/auth
- MTC_SVC_PORT=${MTC_SVC_PORT}
- JWT_SECRET=${JWT_SECRET}
- CDEX_KEY=${CDEX_KEY}
- CDEX_HOST=${CDEX_HOST}
ports:
- 3002:3002
depends_on:
- user-service
- question-service
networks:
- service
frontend:
build:
context: ./frontend
ports:
- 3001:3001
environment:
- REACT_APP_QNS_SVC=http://localhost:3000/api/questions
- REACT_APP_MTC_SVC=http://localhost:3002
- REACT_APP_USR_SVC_HIST=http://localhost:3003/api/hist
- REACT_APP_USR_SVC_AUTH=http://localhost:3003/api/auth
- REACT_APP_USR_SVC_USER=http://localhost:3003/api/user
depends_on:
- user-service
- question-service
- matching-service
networks:
- service
networks:
service:
driver: bridge