Skip to content
Docs Try Aspire

NatsServerResource.withDataBindMount

Method
📦 Aspire.Hosting.Nats v13.2.0-preview.1.26159.1
interface NatsServerResource {
// ... omitted for brevity
withDataBindMount(
source: string,
isReadOnly?: boolean): NatsServerResource;
}

Signature

method withDataBindMount builder
Mounts a host directory as the NATS data directory.
withDataBindMount(
source: string,
isReadOnly?: boolean): NatsServerResource
source string
isReadOnly boolean optional = False
NatsServerResource

Defined on

This method is defined on the following type: