Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

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

Applies to

This method applies to the following types: