# 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/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Volume.cs#L64-L81)

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