# ComposeFile Constructors

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [ComposeFile](/reference/api/csharp/aspire.hosting.docker/composefile.md)
- Kind: `Constructors`
- Members: `1`

Represents a Docker Compose file with properties and configurations for services, networks, volumes, secrets, configs, and custom extensions.

## ComposeFile

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ComposeFile.cs#L55-L108)

```csharp
public sealed class ComposeFile
{
    public ComposeFile()
    {
        // ...
    }
}
```
