Skip to content
DocsTry Aspire
DocsTry

PostgresServerResource.withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a PostgreSQL container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): PostgresServerResource
namestringoptional
isReadOnlybooleanoptional= False
PostgresServerResource

Defined on

This method is defined on the following type: