# DockerComposeServiceCustomizationAnnotation

- Kind: `class`
- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Docker`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/DockerComposeServiceCustomizationAnnotation.cs)
- Implements: `IResourceAnnotation`

Represents an annotation for customizing a Docker Compose service.

## Definition

```csharp
namespace Aspire.Hosting.Docker;

public sealed class DockerComposeServiceCustomizationAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Remarks

Initializes a new instance of the [DockerComposeServiceCustomizationAnnotation](/reference/api/csharp/aspire.hosting.docker/dockercomposeservicecustomizationannotation.md) class.

## Constructors

- [DockerComposeServiceCustomizationAnnotation(Action<DockerComposeServiceResource, Service>)](/reference/api/csharp/aspire.hosting.docker/dockercomposeservicecustomizationannotation/constructors.md#constructor-action-dockercomposeserviceresource-service) -- Represents an annotation for customizing a Docker Compose service.

## Properties

- [Configure](/reference/api/csharp/aspire.hosting.docker/dockercomposeservicecustomizationannotation/properties.md#configure) : `Action<DockerComposeServiceResource, Service>` `get` -- Gets the configuration action for customizing the Docker Compose service.
