withDataVolume
Method
interface NatsServerResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResource;}Signature
method
withDataVolumebuilderAdds a named volume for the data folder to a NATS container resource.
withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResourceParameters
namestringoptionalisReadOnlybooleanoptional= FalseReturns
NatsServerResourceApplies to
This method applies to the following types: