DockerComposeAspireDashboardResource.withHostPort
Method
interface DockerComposeAspireDashboardResource { // ... omitted for brevity withHostPort(port?: number): DockerComposeAspireDashboardResource;}Signature
method
withHostPort builderConfigures the port used to access the Aspire Dashboard from a browser.
withHostPort(port?: number): DockerComposeAspireDashboardResourceParameters
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.Returns
DockerComposeAspireDashboardResource Defined on
This method is defined on the following type: