WithHostPort
Method
func (DockerComposeAspireDashboardResource) WithHostPort(options ...*WithHostPortOptions) DockerComposeAspireDashboardResourceSignature
method
WithHostPort builderConfigures the port used to access the Aspire Dashboard from a browser.
WithHostPort(options ...*WithHostPortOptions) DockerComposeAspireDashboardResourceParameters
options...*WithHostPortOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithHostPortOptions argument.
Port*float64The 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 The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: