# withDataBindMount

- Module: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/typescript/communitytoolkit.aspire.hosting.ravendb.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds a bind mount for the data folder to a RavenDB container resource.

## Definition

```typescript
interface RavenDBServerResource {
  // ... omitted for brevity
  withDataBindMount(
    source: string,
    isReadOnly?: boolean): RavenDBServerResource
}
```

## Parameters

- `source` (`string`)
- `isReadOnly` (`boolean`) `optional` `= False`

## Returns

[RavenDBServerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md) `builder`

## Applies to

- [RavenDBServerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md)
