Skip to content
DocsTry Aspire
DocsTry

withDataVolume

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

Signature

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

Applies to

This method applies to the following types: