withHostPort

Method
📦 Aspire.Hosting.Docker v17.0.0
interface DockerComposeAspireDashboardResource {
// ... omitted for brevity
withHostPort(port?: number): DockerComposeAspireDashboardResource;
}

Signature

methodwithHostPortbuilder
Configures the port used to access the Aspire Dashboard from a browser.
withHostPort(port?: number): DockerComposeAspireDashboardResource
portnumberoptionalThe port to bind on the host. If non-null, the dashboard will be exposed on the host. If `null`, the dashboard will not be exposed on the host but will only be reachable within the container network.
DockerComposeAspireDashboardResource

Applies to

This method applies to the following types: