# Config Properties

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [Config](/reference/api/csharp/aspire.hosting.docker/config.md)
- Kind: `Properties`
- Members: `4`

Represents a configuration object in a Docker Compose file.

## Content

- Name: `Content`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ComposeNodes/Config.cs)

Gets or sets the contents of the configuration file. This property is used to specify the actual configuration data that will be included in the Docker Compose file.

```csharp
public string? Content { get; set; }
```

## External

- Name: `External`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ComposeNodes/Config.cs)

Indicates whether the configuration is external to the current project context. When set to true, the configuration will not be managed or created by the Compose file; instead, it references an existing resource outside the current scope. If null, the external status is not explicitly specified.

```csharp
public bool? External { get; set; }
```

## File

- Name: `File`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ComposeNodes/Config.cs)

Gets or sets the path to the configuration file. This property is used to specify the file containing the configuration data for the service or component.

```csharp
public string? File { get; set; }
```

## Labels

- Name: `Labels`
- Modifiers: `get; set`
- Returns: `Dictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ComposeNodes/Config.cs)

Represents a collection of key-value pairs used as metadata for configuration objects. The labels provide additional descriptive information, which can be utilized for tagging, grouping, or identification purposes.

```csharp
public Dictionary<string, string> Labels { get; set; }
```
