withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.RavenDB v13.6.1
interface RavenDBServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): RavenDBServerResource;
}

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a RavenDB container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): RavenDBServerResource
namestringoptionalOptional name for the volume. Defaults to a generated name if not provided.
isReadOnlybooleanoptional= FalseIndicates whether the volume should be read-only. Defaults to false.
RavenDBServerResource

Applies to

This method applies to the following types: