MailPitContainerResource.withDataBindMount

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

Signature

methodwithDataBindMountbuilder
Configures a bind mount for the data directory of the MailPit container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): MailPitContainerResource
sourcestringThe source path on the host system to bind to the container.
isReadOnlybooleanoptional= FalseA value indicating whether the bind mount should be read-only. Default is false.
MailPitContainerResource

Defined on

This method is defined on the following type: