# WithDataBindMount

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/go/communitytoolkit.aspire.hosting.logto.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`LogtoResource`](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Configures the Logto resource to use a data bind mount with the specified source directory.

## Definition

```go
func (LogtoResource) WithDataBindMount(source string) LogtoResource
```

## Parameters

- `source` (`string`) -- The host directory to be mounted as the data volume.

## Returns

[`LogtoResource`](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- The resource builder for the configured Logto resource.

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

## Applies to

- [`LogtoResource`](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md)
