Is it possible to have the same container port exposed as TCP and UDP? #7170
Replies: 2 comments 7 replies
-
I was able to get close with this sample: #pragma warning disable ASPIREPROXYENDPOINTS001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
builder.AddContainer("coturn", "coturn/coturn", "latest")
.WithEndpoint("tcp1", e => { e.Port = 3478; e.TargetPort = 3478; e.Protocol = System.Net.Sockets.ProtocolType.Tcp; })
.WithEndpoint("tcp2", e => { e.Port = 5349; e.TargetPort = 5349; e.Protocol = System.Net.Sockets.ProtocolType.Tcp; })
.WithEndpoint("udp1", e => { e.Port = 3478; e.TargetPort = 3478; e.Protocol = System.Net.Sockets.ProtocolType.Udp; })
.WithEndpoint("udp3", e => { e.Port = 5349; e.TargetPort = 5349; e.Protocol = System.Net.Sockets.ProtocolType.Udp; })
.WithEndpointProxySupport(false);
#pragma warning restore ASPIREPROXYENDPOINTS001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. Currently trying to improve the API for this scenario, there is another Also wondering how the port ranges could be provided. Update: #7700 This would allow for: |
Beta Was this translation helpful? Give feedback.
-
Thanks, @sebastienros. Is this something from Aspire 9.1? I couldn't find Without
I'm still starting with this, but that port range might need to be exposed on the same ports as the internal container port and not proxied. I wonder if I could achieve this as direct container commands. - UPDATE: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get this:
docker run -d -p 3478:3478 -p 3478:3478/udp -p 5349:5349 -p 5349:5349/udp -p 49152-65535:49152-65535/udp coturn/coturn
https://hub.docker.com/r/coturn/coturn
Beta Was this translation helpful? Give feedback.
All reactions