# ServiceDependency

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

Represents a service dependency in a Docker Compose file.

## Definition

```typescript
interface ServiceDependency {
  condition: string;
}
```

## Properties

- `condition`: `string` `get - set` -- Gets or sets the condition under which the service should be started.
