@@ -47,12 +47,6 @@ resource mongodb 'Microsoft.App/containerApps@2023-05-02-preview' = {
47
47
cpu : json ('0.5' )
48
48
memory : '1.0Gi'
49
49
}
50
- //command: [
51
- // 'mongod'
52
- // '--dbpath'
53
- // '/data/mongoaz'
54
- // '--bind_ip_all'
55
- //]
56
50
probes : [
57
51
{
58
52
type : 'liveness'
@@ -67,7 +61,6 @@ resource mongodb 'Microsoft.App/containerApps@2023-05-02-preview' = {
67
61
]
68
62
scale : {
69
63
minReplicas : 1
70
- //maxReplicas: 3
71
64
}
72
65
}
73
66
}
@@ -100,16 +93,6 @@ resource rabbitmq 'Microsoft.App/containerApps@2023-05-02-preview' = {
100
93
]
101
94
}
102
95
secrets : [
103
- //{
104
- // name: 'queue-username'
105
- // keyVaultUrl: 'foo' // TODO
106
- // identity: managedIdentityId
107
- //}
108
- //{
109
- // name: 'queue-password'
110
- // keyVaultUrl: 'bar' // TODO
111
- // identity: managedIdentityId
112
- //}
113
96
{
114
97
name : 'rabbitmq-enabled-plugins'
115
98
value : rabbitmqPluginsConf
@@ -129,12 +112,10 @@ resource rabbitmq 'Microsoft.App/containerApps@2023-05-02-preview' = {
129
112
{
130
113
name : 'RABBITMQ_DEFAULT_USER'
131
114
value : queueUsername
132
- //secretRef: 'queue-username'
133
115
}
134
116
{
135
117
name : 'RABBITMQ_DEFAULT_PASS'
136
118
value : queuePass
137
- //secretRef: 'queue-password'
138
119
}
139
120
]
140
121
volumeMounts : [
@@ -174,8 +155,7 @@ resource orderservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
174
155
configuration : {
175
156
ingress : {
176
157
external : false
177
- targetPort : 80
178
- //exposedPort: 3000
158
+ targetPort : 3000
179
159
transport : 'http'
180
160
allowInsecure : true
181
161
ipSecurityRestrictions : [
@@ -186,13 +166,6 @@ resource orderservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
186
166
ipAddressRange : subnetIpRange
187
167
}
188
168
]
189
- additionalPortMappings : [
190
- {
191
- external : false
192
- targetPort : 3000
193
- exposedPort : 3000
194
- }
195
- ]
196
169
}
197
170
}
198
171
template : {
@@ -295,7 +268,7 @@ resource makelineservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
295
268
configuration : {
296
269
ingress : {
297
270
external : false
298
- targetPort : 81
271
+ targetPort : 3001
299
272
transport : 'http'
300
273
allowInsecure : true
301
274
ipSecurityRestrictions : [
@@ -306,13 +279,6 @@ resource makelineservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
306
279
ipAddressRange : subnetIpRange
307
280
}
308
281
]
309
- additionalPortMappings : [
310
- {
311
- external : false
312
- targetPort : 3001
313
- exposedPort : 3001
314
- }
315
- ]
316
282
}
317
283
}
318
284
template : {
@@ -394,9 +360,9 @@ resource productservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
394
360
configuration : {
395
361
ingress : {
396
362
external : false
397
- targetPort : 82
363
+ targetPort : 3002
398
364
transport : 'http'
399
- allowInsecure : true
365
+ allowInsecure : false
400
366
ipSecurityRestrictions : [
401
367
{
402
368
name : 'AllowSnet'
@@ -405,13 +371,6 @@ resource productservice 'Microsoft.App/containerApps@2023-05-02-preview' = {
405
371
ipAddressRange : subnetIpRange
406
372
}
407
373
]
408
- additionalPortMappings : [
409
- {
410
- external : false
411
- targetPort : 3002
412
- exposedPort : 3002
413
- }
414
- ]
415
374
}
416
375
}
417
376
template : {
@@ -530,6 +489,6 @@ resource virtualworker 'Microsoft.App/containerApps@2023-05-02-preview' = {
530
489
tags : tags
531
490
}
532
491
533
- output makelineServiceUri string = 'http ://${makelineservice .properties .configuration .ingress .fqdn }'
534
- output orderServiceUri string = 'http ://${orderservice .properties .configuration .ingress .fqdn }'
535
- output productServiceUri string = 'http ://${productservice .properties .configuration .ingress .fqdn }'
492
+ output makelineServiceUri string = 'https ://${makelineservice .properties .configuration .ingress .fqdn }'
493
+ output orderServiceUri string = 'https ://${orderservice .properties .configuration .ingress .fqdn }'
494
+ output productServiceUri string = 'https ://${productservice .properties .configuration .ingress .fqdn }'
0 commit comments