RabbitMQServerResource.withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a RabbitMQ container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): RabbitMQServerResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
RabbitMQServerResource

Defined on

This method is defined on the following type: