Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 Aspire.Hosting.Docker v13.4.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
portnumberoptional
DockerComposeAspireDashboardResource

Applies to

This method applies to the following types: