# ContainerMountAnnotation

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

Represents a mount annotation for a container resource.

## Definition

```typescript
interface ContainerMountAnnotation extends IResourceAnnotation {
  readonly isReadOnly: boolean;
  readonly source: string;
  readonly target: string;
  readonly type: ContainerMountType;
}
```

## Properties

- `isReadOnly`: `boolean` `get` -- Gets a value indicating whether the volume mount is read-only.
- `source`: `string` `get` -- Gets the source of the bind mount or name if a volume. Can be `null` if the mount is an anonymous volume.
- `target`: `string` `get` -- Gets the target of the mount.
- `type`: [ContainerMountType](/reference/api/typescript/aspire.hosting/containermounttype.md) `get` -- Gets the type of the mount.
