Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

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

Applies to

This method applies to the following types: