Skip to content
DocsTry Aspire
DocsTry

NatsServerResource.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

Defined on

This method is defined on the following type: