ProjectResource.withVolume

Method
📦 Aspire.Hosting v17.0.0
interface ProjectResource {
// ... omitted for brevity
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ProjectResource;
}

Signature

methodwithVolumebuilder
Adds a volume to a project resource.
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ProjectResource
targetstringThe mount path inside the published container.
namestringThe volume name.
envstringThe environment variable that receives the effective volume path.
isReadOnlybooleanoptional= FalseWhether the published volume is read-only.
ProjectResource

Defined on

This method is defined on the following type: