Skip to content
DocsTry Aspire
DocsTry

RabbitMQServerResource.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

Defined on

This method is defined on the following type: