forked from CS3219-AY2324S1/ay2324s1-course-assessment-g32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
97 lines (97 loc) · 2.04 KB
/
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
services:
nginx:
container_name: nginx
image: nginx:latest
ports: ['80:80']
volumes:
- ./Nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- svc-web-ui
rabbitmq:
container_name: rabbitmq
image: rabbitmq:latest
ports: ['5672:5672']
redis:
container_name: redis
image: redis:latest
ports: ['6379:6379']
svc-user:
container_name: user-service
build: ./User
env_file: .env
environment:
- AUTH_HOST=svc-auth
ports: ['4001:4001']
depends_on:
svc-auth:
condition: service_started
svc-auth:
container_name: auth-service
build: ./Auth
env_file: .env
ports: ['5001:5001']
svc-question:
container_name: question-service
build: ./Question
env_file: .env
environment:
- AUTH_HOST=svc-auth
ports: ['6001:6001']
depends_on:
- svc-auth
svc-match:
container_name: match-service
build: ./Match
env_file: .env
environment:
- RABBITMQ_HOST=rabbitmq
- AUTH_HOST=svc-auth
ports: ['7001:7001']
depends_on:
rabbitmq:
condition: service_started
svc-auth:
condition: service_started
svc-collab:
container_name: collab-service
build: ./Collaboration
env_file: .env
ports: ['8001:8001']
depends_on:
redis:
condition: service_started
links:
- redis
environment:
- REDIS_HOST=redis
svc-history:
container_name: history-service
build: ./History
env_file: .env
environment:
- AUTH_HOST=svc-auth
- QUESTION_HOST=svc-question
ports: ['9001:9001']
depends_on:
- svc-auth
- svc-question
svc-execution:
container_name: execution-service
build: ./Execution
env_file: .env
ports: ['10001:10001']
depends_on:
- svc-auth
- svc-match
svc-web-ui:
container_name: web-ui
build: ./frontend
env_file: .env
depends_on:
- svc-user
- svc-auth
- svc-question
- svc-match
- svc-collab
- svc-history
- svc-execution