MailPitContainerResource.withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.MailPit v13.6.1
interface MailPitContainerResource {
// ... omitted for brevity
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource;
}

Signature

methodwithDataVolumebuilder
Configures a data volume for the MailPit container resource.
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource
namestringThe name of the data volume to be mounted.
isReadOnlybooleanoptional= FalseA boolean indicating whether the volume should be mounted as read-only.
MailPitContainerResource

Defined on

This method is defined on the following type: