Skip to content
DocsTry Aspire
DocsTry

PgAdminContainerResource.withHostPort

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

Signature

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

Defined on

This method is defined on the following type: