@@ -10,13 +10,15 @@ services:
10
10
dockerfile : ./web/DevStore.WebApp.MVC/Dockerfile
11
11
restart : always
12
12
environment :
13
- - ASPNETCORE_ENVIRONMENT=Docker
14
- - ASPNETCORE_URLS=http://*:5001
15
- - LC_ALL=en_US.UTF-8
16
- - LANG=en_US.UTF-8
13
+ ASPNETCORE_ENVIRONMENT : Docker
14
+ ASPNETCORE_URLS : " https://+:443;http://+:80"
15
+ ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
16
+ ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
17
+ LC_ALL : " en_US.UTF-8"
18
+ LANG : " en_US.UTF-8"
17
19
# Change the two lines above to your culture (ex pt_BR)
18
20
volumes :
19
- - dpkeys:/var/data_protection_keys/
21
+ - ./certs:/https:ro
20
22
depends_on :
21
23
- api-catalog
22
24
- api-identity
@@ -28,7 +30,9 @@ services:
28
30
image : rabbitmq:3-management
29
31
container_name : devstore-rabbit
30
32
expose :
33
+ ports :
31
34
- 5672
35
+ - 15672
32
36
environment :
33
37
RABBITMQ_DEFAULT_USER : " devstore"
34
38
RABBITMQ_DEFAULT_PASS : " devstore"
@@ -45,14 +49,14 @@ services:
45
49
46
50
api-identity :
47
51
image : desenvolvedorio/devstore-api-identity:latest
48
- container_name : devstore-api-identity
52
+ container_name : devstore-api-identity
49
53
build :
50
54
context : ../src
51
55
dockerfile : ./services/DevStore.Identity.API/Dockerfile
52
56
restart : always
53
57
environment :
54
58
ASPNETCORE_ENVIRONMENT : Docker
55
- ASPNETCORE_URLS : https://+:5101 ;http://+5102
59
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
56
60
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
57
61
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
58
62
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSUsers;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -73,7 +77,7 @@ services:
73
77
restart : always
74
78
environment :
75
79
ASPNETCORE_ENVIRONMENT : Docker
76
- ASPNETCORE_URLS : https://+:5201 ;http://+5202
80
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
77
81
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
78
82
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
79
83
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSShoppingCart;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -95,7 +99,7 @@ services:
95
99
restart : always
96
100
environment :
97
101
ASPNETCORE_ENVIRONMENT : Docker
98
- ASPNETCORE_URLS : https://+:5301 ;http://+5302
102
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
99
103
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
100
104
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
101
105
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSCatalog;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -116,7 +120,7 @@ services:
116
120
restart : always
117
121
environment :
118
122
ASPNETCORE_ENVIRONMENT : Docker
119
- ASPNETCORE_URLS : https://+:5401 ;http://+5402
123
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
120
124
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
121
125
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
122
126
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSCustomers;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -138,7 +142,7 @@ services:
138
142
restart : always
139
143
environment :
140
144
ASPNETCORE_ENVIRONMENT : Docker
141
- ASPNETCORE_URLS : https://+:5501 ;http://+5502
145
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
142
146
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
143
147
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
144
148
volumes :
@@ -160,7 +164,7 @@ services:
160
164
restart : always
161
165
environment :
162
166
ASPNETCORE_ENVIRONMENT : Docker
163
- ASPNETCORE_URLS : https://+:5601 ;http://+5602
167
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
164
168
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
165
169
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
166
170
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSBilling;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -183,7 +187,7 @@ services:
183
187
restart : always
184
188
environment :
185
189
ASPNETCORE_ENVIRONMENT : Docker
186
- ASPNETCORE_URLS : https://+:5701 ;http://+5702
190
+ ASPNETCORE_URLS : https://+:443 ;http://+:80
187
191
ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
188
192
ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
189
193
CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSOrders;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
@@ -196,6 +200,27 @@ services:
196
200
- api-identity
197
201
- generate-pfx
198
202
203
+ web-status :
204
+ image : desenvolvedorio/devstore-web-status:latest
205
+ container_name : devstore-web-status
206
+ build :
207
+ context : ../src
208
+ dockerfile : ./web/DevStore.WebApp.Status/Dockerfile
209
+ restart : always
210
+ environment :
211
+ ASPNETCORE_ENVIRONMENT : Docker
212
+ ASPNETCORE_URLS : https://+:443;http://+:80
213
+ CUSTOMCONNSTR_DefaultConnection : " Server=database-devstore;Database=DSStatus;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
214
+ ASPNETCORE_Kestrel__Certificates__Default__Password : 9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe
215
+ ASPNETCORE_Kestrel__Certificates__Default__Path : /https/devstore.academy-localhost.pfx
216
+ AppSettings__DatabaseType : SqlServer
217
+ USE_HTTPS_REDIRECTION : " false"
218
+ volumes :
219
+ - ./certs:/https:ro
220
+ depends_on :
221
+ - database-devstore
222
+
223
+
199
224
generate-pfx :
200
225
image : emberstack/openssl
201
226
container_name : generate-pfx
@@ -207,13 +232,10 @@ services:
207
232
openssl genrsa -out devstore.rsa 2048 &&
208
233
openssl req -sha256 -new -key devstore.rsa -out devstore.csr -subj '/CN=localhost' &&
209
234
openssl x509 -req -sha256 -days 365 -in devstore.csr -signkey devstore.rsa -out devstore.crt &&
210
- openssl pkcs12 -export -out /https/devstore.academy-localhost.pfx -inkey devstore.rsa -in devstore.crt -password pass:9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe &&
211
- rm devstore.rsa devstore.csr devstore.crt)"
235
+ openssl pkcs12 -export -out /https/devstore.academy-localhost.pfx -inkey devstore.rsa -in devstore.crt -password pass:9HoGMnb7Lu8NFdHBz4Vq2rtKivzMhmMXhtvuB4TZcLMmbWfFmDQCjJeLURAJ4GYe)"
212
236
213
237
seq :
214
238
image : datalust/seq:latest
215
- expose :
216
- - 5341
217
239
ports :
218
240
- 5341:80
219
241
environment :
@@ -230,9 +252,9 @@ services:
230
252
ports :
231
253
- " 7500:80"
232
254
- " 7501:443"
255
+ - " 7510:8080"
256
+ - " 7511:4443"
233
257
depends_on :
234
258
- web-mvc
235
259
236
- volumes :
237
- dpkeys :
238
-
260
+
0 commit comments