Skip to content
DocsTry Aspire
DocsTry

withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Mosquitto v13.5.0
interface MosquittoServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): MosquittoServerResource;
}

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a Mosquitto container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): MosquittoServerResource
namestringoptional
isReadOnlybooleanoptional= False
MosquittoServerResource

Applies to

This method applies to the following types: