Skip to content
Docs Try Aspire
Docs Try

withDataVolume

Method
📦 Aspire.Hosting.MySql v13.4.0
interface MySqlServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): MySqlServerResource;
}

Signature

method withDataVolume builder
Adds a named volume for the data folder to a MySql container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): MySqlServerResource
name string optional
isReadOnly boolean optional = False
MySqlServerResource

Applies to

This method applies to the following types: