# withBindMount

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.2.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Adds a bind mount

## Definition

```typescript
interface ContainerResource {
  // ... omitted for brevity
  withBindMount(
    source: string,
    target: string,
    isReadOnly?: boolean): ContainerResource
}
```

## Parameters

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

## Returns

[ContainerResource](/reference/api/typescript/aspire.hosting/containerresource.md) `builder`

## Applies to

- [ContainerResource](/reference/api/typescript/aspire.hosting/containerresource.md)
