Skip to content
DocsTry Aspire
DocsTry

withDataVolume

Method
📦 Aspire.Hosting.RabbitMQ v13.4.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
namestringoptional
isReadOnlybooleanoptional= False
RabbitMQServerResource

Applies to

This method applies to the following types: