Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Minio v13.4.0
interface MinioContainerResource {
// ... omitted for brevity
withHostPort(port: number): MinioContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the MinIO resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): MinioContainerResource
portnumber
MinioContainerResource

Applies to

This method applies to the following types: