withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.6.1
interface RedPandaConsoleContainerResource {
// ... omitted for brevity
withHostPort(port: number): RedPandaConsoleContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
withHostPort(port: number): RedPandaConsoleContainerResource
portnumberThe port to bind on the host. If `null` a random port is assigned.
RedPandaConsoleContainerResource

Applies to

This method applies to the following types: