Skip to content
DocsTry Aspire
DocsTry

withDataBindMount

Method
📦 Aspire.Hosting.PostgreSQL v13.4.0
interface PostgresServerResource {
// ... omitted for brevity
withDataBindMount(
source: string,
isReadOnly?: boolean): PostgresServerResource;
}

Signature

methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a PostgreSQL container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): PostgresServerResource
sourcestring
isReadOnlybooleanoptional= False
PostgresServerResource

Applies to

This method applies to the following types: