-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
175 lines (162 loc) · 4 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
version: "3.8"
volumes:
rabbitmq_data:
services:
####################################
# RabbitMQ: The messaging broker
####################################
rabbitmq:
image: rabbitmq:3-management
hostname: esd-rabbit
restart: always
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
###################################
# module: The Module microservice
###################################
module:
build:
context: ./
dockerfile: ./module.Dockerfile
image: module:1.0
restart: always
depends_on:
- rabbitmq
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/module
PYTHONUNBUFFERED: 1
ports:
- "5000:5000"
###################################
# job: The Job microservice
###################################
job:
build:
context: ./
dockerfile: ./job.Dockerfile
image: job:1.0
restart: always
depends_on:
- rabbitmq
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/job
PYTHONUNBUFFERED: 1
ports:
- "5002:5002"
###################################
# Course: The Course microservice
###################################
course:
build:
context: ./
dockerfile: ./course.Dockerfile
image: course:1.0
restart: always
depends_on:
- rabbitmq
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/course
PYTHONUNBUFFERED: 1
ports:
- "5003:5003"
###################################
# Error: The Error microservice
###################################
error:
build:
context: ./
dockerfile: error.Dockerfile
image: error:1.0
restart: always
depends_on:
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
PYTHONUNBUFFERED: 1
###############################################
# Match job: The Match job microservice
###############################################
match_job:
build:
context: ./
dockerfile: ./match_job.Dockerfile
image: match_job:1.0
restart: always
depends_on:
- module
- job
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
moduleURL: http://module:5000/
studentURL: http://student:5001/
jobURL: http://job:5002/
PYTHONUNBUFFERED: 1
ports:
- "5005:5005"
###############################################
# Apply Job: The Apply Job microservice
###############################################
apply_job:
build:
context: ./
dockerfile: ./apply_job.Dockerfile
image: apply_job:1.0
restart: always
depends_on:
- job
- module
- course
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
moduleURL: http://module:5000/
studentURL: http://student:5001/
jobURL: http://job:5002/
courseURL: http://course:5003/
PYTHONUNBUFFERED: 1
ports:
- "5006:5006"
###############################################
# Create job: The Create job microservice
###############################################
create_job:
build:
context: ./
dockerfile: ./create_job.Dockerfile
image: create_job:1.0
restart: always
depends_on:
- job
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
studentURL: http://student:5001/
jobURL: http://job:5002/
createJobURL: http://localhost:5007/
PYTHONUNBUFFERED: 1
ports:
- "5007:5007"
##############################################
# Email: The Email microservice
##############################################
email:
build:
context: ./
dockerfile: ./email.Dockerfile
image: email:1.0
restart: always
depends_on:
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
PYTHONUNBUFFERED: 1
sendgridAPIKey: APIKEY