NatsServerResource.withDataBindMount
Method
interface NatsServerResource { // ... omitted for brevity withDataBindMount( source: string, isReadOnly?: boolean): NatsServerResource;}Signature
method
withDataBindMount builderAdds a bind mount for the data folder to a NATS container resource.
withDataBindMount( source: string, isReadOnly?: boolean): NatsServerResourceParameters
sourcestringThe source directory on the host to mount into the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount.Returns
NatsServerResource Defined on
This method is defined on the following type: