Skip to content

Commit 6c1c164

Browse files
authored
Fix target port in ACA deployment (change 80 to 8080) (#91)
1 parent 2ab79e3 commit 6c1c164

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = {
147147
properties: {
148148
managedEnvironmentId: hasProvidedAppEnvironment ? appEnvironmentId : appEnvironment.id
149149
configuration: {
150-
ingress: { external: true, targetPort: 80, traffic: [ { latestRevision: true, weight: 100 } ] }
150+
ingress: { external: true, targetPort: 8080, traffic: [ { latestRevision: true, weight: 100 } ] }
151151
secrets: concat(
152152
[
153153
{ name: 'connection-strings-application-insights', value: appInsights.properties.ConnectionString }
@@ -200,8 +200,8 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = {
200200
]
201201
resources: { cpu: json('0.25'), memory: '0.5Gi' } // these are the least resources we can provision
202202
probes: [
203-
{ type: 'Liveness', httpGet: { port: 80, path: '/liveness' } }
204-
{ type: 'Readiness', httpGet: { port: 80, path: '/health' } }
203+
{ type: 'Liveness', httpGet: { port: 8080, path: '/liveness' } }
204+
{ type: 'Readiness', httpGet: { port: 8080, path: '/health' } }
205205
]
206206
}
207207
]

main.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
"configuration": {
188188
"ingress": {
189189
"external": true,
190-
"targetPort": 80,
190+
"targetPort": 8080,
191191
"traffic": [
192192
{
193193
"latestRevision": true,
@@ -244,14 +244,14 @@
244244
{
245245
"type": "Liveness",
246246
"httpGet": {
247-
"port": 80,
247+
"port": 8080,
248248
"path": "/liveness"
249249
}
250250
},
251251
{
252252
"type": "Readiness",
253253
"httpGet": {
254-
"port": 80,
254+
"port": 8080,
255255
"path": "/health"
256256
}
257257
}

0 commit comments

Comments
 (0)