-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
264 lines (251 loc) · 6.68 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
version: "3.8"
networks:
default:
progimage:
external: true
services:
rabbitmq:
container_name: rabbitmq
hostname: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
image: rabbitmq:3.7.7-management
networks:
- progimage
postgres-storage:
container_name: postgres-storage
hostname: postgres-storage
restart: always
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_DB=progimage_storage
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- progimage
postgres-transformation:
container_name: postgres-transformation
hostname: postgres-transformation
restart: always
image: postgres
ports:
- 5433:5432
environment:
- POSTGRES_DB=progimage_transformation
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- progimage
progimage-api-gateway:
container_name: progimage-api-gateway
hostname: gateway
restart: always
build:
context: .
dockerfile: ./src/api-gateway/Dockerfile
ports:
- 80:80
- 443:443
environment:
- WEBSERVER_PORT=80
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-transformation:
container_name: progimage-transformation
hostname: transformation
restart: always
depends_on:
- rabbitmq
- postgres-transformation
build:
context: .
dockerfile: ./src/transformation/Dockerfile
ports:
- 5000:5000
- 5001:5001
environment:
- DATABASE_HOSTNAME=postgres-transformation
- DATBASE_PORT=5433
- DATABASE_NAME=progimage_transformation
- DATABASE_USERNAME=user
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.api
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.blur
- WEBSERVER_PORT=5000
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-thumbnail:
container_name: progimage-thumbnail
hostname: thumbnail
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: ./src/thumbnail/Dockerfile
ports:
- 5002:5002
- 5003:5002
environment:
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-thumbnail
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.thumbnail
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.api
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-rotate:
container_name: progimage-rotate
hostname: rotate
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: ./src/rotate/Dockerfile
ports:
- 5006:5006
- 5007:5007
environment:
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-rotate
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.rotate
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.api
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-mask:
container_name: progimage-mask
hostname: mask
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: ./src/mask/Dockerfile
ports:
- 5008:5008
- 5009:5009
environment:
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-mask
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.mask
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.api
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-compress:
container_name: progimage-compress
hostname: compress
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: ./src/compress/Dockerfile
ports:
- 5010:5010
- 5011:5011
environment:
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-compress
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.compress
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.api
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-blur:
container_name: progimage-blur
hostname: blur
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: ./src/blur/Dockerfile
ports:
- 5012:5012
- 5013:5013
environment:
- DATABASE_PASSWORD=password
- RABBITMQ_HOSTNAME=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=progimage-blur
- RABBITMQ_EXCHANGE_NAME=progimage-transformation
- RABBITMQ_EXCHANGE_TYPE=topic
- RABBITMQ_CONSUMER_BINDING_KEY=progimage.transformation.blur
- RABBITMQ_PRODUCER_BINDING_KEY=progimage.transformation.api
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro
progimage-storage:
container_name: progimage-storage
hostname: storage
restart: always
depends_on:
- postgres-storage
build:
context: .
dockerfile: ./src/storage/Dockerfile
ports:
- 8080:8080
- 8081:8081
environment:
- DATABASE_HOSTNAME=postgres-storage
- DATABASE_NAME=progimage_storage
- DATABASE_USERNAME=user
- DATABASE_PASSWORD=password
- WEBSERVER_PORT=8080
networks:
- progimage
volumes:
- ~/.aspnet/https:/https:ro