withDataBindMount

Method
📦 Aspire.Hosting.RabbitMQ v17.0.0
interface RabbitMQServerResource {
// ... omitted for brevity
withDataBindMount(
source: string,
isReadOnly?: boolean): RabbitMQServerResource;
}

Signature

methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a RabbitMQ container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): RabbitMQServerResource
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount.
RabbitMQServerResource

Applies to

This method applies to the following types: