withDataBindMount

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

Signature

methodwithDataBindMountbuilder
Configures 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): LavinMQContainerResource
sourcestringThe source path on the host machine to bind mount to the container's data directory.
isReadOnlybooleanoptional= FalseIndicates if the bind mount should be configured as read-only. Default is false.
LavinMQContainerResource

Applies to

This method applies to the following types: