File tree 2 files changed +8
-1
lines changed 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,15 @@ param targetPort int = 80
15
15
param allowedOrigins array = []
16
16
param transport string = 'auto'
17
17
param allowInsecure bool = false
18
+ param additionalPortMappings array = []
18
19
19
20
@description ('CPU cores allocated to a single container instance, e.g. 0.5' )
20
21
param containerCpuCoreCount string = '0.5'
21
22
22
23
@description ('Memory allocated to a single container instance, e.g. 1Gi' )
23
24
param containerMemory string = '1.0Gi'
24
25
25
- resource app 'Microsoft.App/containerApps@2023-05-01 ' = {
26
+ resource app 'Microsoft.App/containerApps@2023-11-02-preview ' = {
26
27
name : name
27
28
location : location
28
29
tags : tags
@@ -39,6 +40,7 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = {
39
40
corsPolicy : {
40
41
allowedOrigins : empty (allowedOrigins ) ? ['*' ] : allowedOrigins
41
42
}
43
+ additionalPortMappings : additionalPortMappings
42
44
}
43
45
secrets : concat (secrets , [
44
46
{
Original file line number Diff line number Diff line change @@ -325,6 +325,11 @@ module qdrant './core/host/container-app.bicep' = if (useQdrant) {
325
325
allowInsecure : (qdrantPort == 6334 ? true : false )
326
326
// gRPC needs to be explicitly set for HTTP2
327
327
transport : (qdrantPort == 6334 ? 'HTTP2' : 'auto' )
328
+ additionalPortMappings : (qdrantPort == 6334 ? [{
329
+ // external: false
330
+ targetPort : 6333
331
+ exposedPort : 6333
332
+ }] : [])
328
333
}
329
334
}
330
335
You can’t perform that action at this time.
0 commit comments