withDataBindMount
Method
interface ValkeyResource { // ... omitted for brevity withDataBindMount( source: string, isReadOnly?: boolean): ValkeyResource;}Signature
method
withDataBindMount builderAdds a bind mount for the data folder to a Valkey container resource and enables Valkey persistence.
withDataBindMount( source: string, isReadOnly?: boolean): ValkeyResourceParameters
sourcestringThe source directory on the host to mount into the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount. Setting this to `true` will disable Valkey persistence. Defaults to `false`.Returns
ValkeyResource Applies to
This method applies to the following types: