Skip to content
DocsTry Aspire
DocsTry

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

Defined on

This method is defined on the following type: