withDataBindMount
Method
interface LavinMQContainerResource { // ... omitted for brevity withDataBindMount( source: string, isReadOnly?: boolean): LavinMQContainerResource;}Signature
method
withDataBindMount builderConfigures a bind mount for the LavinMQ container resource to allow data persistence. The method mounts a specified source path on the host to the container's data directory.
withDataBindMount( source: string, isReadOnly?: boolean): LavinMQContainerResourceParameters
sourcestringThe source path on the host machine to bind mount to the container's data directory.isReadOnly booleanoptional= FalseIndicates if the bind mount should be configured as read-only. Default is false.Returns
LavinMQContainerResource Applies to
This method applies to the following types: