# Volume Constructors

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

Represents a volume definition in a Docker Compose configuration file.

## Volume

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

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