This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
forked from CS3219-AY2324S1/ay2324s1-course-assessment-g05
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
140 lines (129 loc) · 2.61 KB
/
docker-compose.yaml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
event-bus:
build: ./database/event-bus
ports:
- "6380:6379"
container_name: event-bus
networks:
- peerprep
collaboration-cache:
build: ./database/collaboration-cache
ports:
- "6379:6379"
container_name: collaboration-cache
networks:
- peerprep
matching-cache:
build: ./database/matching-cache
ports:
- "5672:5672"
- "15672:15672"
container_name: matching-cache
networks:
- peerprep
user-service:
container_name: user-service
build:
context: ./backend/user-service
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "5005:5005"
restart: always
networks:
- peerprep
question-service:
container_name: question-service
build:
context: ./backend/question-service
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "5100:5100"
restart: always
networks:
- peerprep
auth-service:
container_name: auth-service
build:
context: ./backend/auth-service
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "5050:5050"
restart: always
networks:
- peerprep
depends_on:
- user-service
matching-service:
depends_on:
- matching-cache
- event-bus
container_name: matching-service
build:
context: ./backend/matching-service
dockerfile: Dockerfile
args:
EVENT_BUS_CONTAINER_NAME: event-bus
QUEUE_URL: matching-cache
env_file:
- ./.env
ports:
- "5200:5200"
restart: always
networks:
- peerprep
collaboration-service:
depends_on:
- event-bus
- collaboration-cache
container_name: collaboration-service
build:
context: ./backend/collaboration-service
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "5300:5300"
restart: always
networks:
- peerprep
history-service:
container_name: history-service
build:
context: ./backend/history-service
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "5400:5400"
restart: always
networks:
- peerprep
frontend:
depends_on:
- auth-service
- user-service
- matching-service
- collaboration-service
- history-service
- question-service
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- ./.env
restart: always
networks:
- peerprep
networks:
peerprep:
driver: bridge