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