Skip to content
Docs Try Aspire
Docs Try

PostgresServerResource.withDataBindMount

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

Signature

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

Defined on

This method is defined on the following type: