Skip to content
Docs Try Aspire

DockerComposeAspireDashboardResource.withHostPort

Method
📦 Aspire.Hosting.Docker v13.2.0-preview.1.26159.1
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

Defined on

This method is defined on the following type: