withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a data volume to the Open WebUI container.
withDataVolume(
name?: string,
isReadOnly?: boolean): OpenWebUIResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
OpenWebUIResource

Applies to

This method applies to the following types: