# RavenDBServerResource.WithDataBindMount

- Module: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/go/communitytoolkit.aspire.hosting.ravendb.md)
- Defined on: [RavenDBServerResource](/reference/api/go/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md)
- Version: `13.6.1`
- Kind: `method`

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

## Definition

```go
type RavenDBServerResource interface {
    // ... omitted for brevity
    WithDataBindMount(
        source string,
        options ...*WithDataBindMountOptions,
    ) RavenDBServerResource
}
```

## Signature

```go
WithDataBindMount(
    source string,
    options ...*WithDataBindMountOptions,
) RavenDBServerResource
```

## Parameters

- `source` (`string`) -- The source directory on the host to mount into the container.
- `options` (`...*WithDataBindMountOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDataBindMountOptions` argument.

- `IsReadOnly` (`*bool`) -- Indicates whether the bind mount should be read-only. Defaults to false.

## Returns

[`RavenDBServerResource`](/reference/api/go/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md) -- The `IResourceBuilder` for the RavenDB server resource.

Returns a handle; failures surface later via `Err()`.

## Defined on

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