Skip to content
Docs Try Aspire
Docs Try

withDataVolume

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

Signature

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

Applies to

This method applies to the following types: