Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

method withHostPort builder
Sets the host port for the Aspire dashboard
withHostPort(port?: number): DockerComposeAspireDashboardResource
port number optional
DockerComposeAspireDashboardResource

Applies to

This method applies to the following types: