withDataVolume
Method
interface MailPitContainerResource { // ... omitted for brevity withDataVolume( name: string, isReadOnly?: boolean): MailPitContainerResource;}Signature
method
withDataVolume builderConfigures a data volume for the MailPit container resource.
withDataVolume( name: string, isReadOnly?: boolean): MailPitContainerResourceParameters
namestringThe name of the data volume to be mounted.isReadOnly booleanoptional= FalseA boolean indicating whether the volume should be mounted as read-only.Returns
MailPitContainerResource Applies to
This method applies to the following types: