# Aspire.Hosting.Docker

- Module: `Aspire.Hosting.Docker`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `16`
- Types: `14`

## Handles

- [CapturedEnvironmentVariable](/reference/api/go/aspire.hosting.docker/capturedenvironmentvariable.md) -- `handle` - 3 members -- Represents a captured environment variable that will be written to the .env file adjacent to the Docker Compose file.
- [ComposeFile](/reference/api/go/aspire.hosting.docker/composefile.md) -- `handle` - 13 members -- Represents a Docker Compose file with properties and configurations for services, networks, volumes, secrets, configs, and custom extensions.
- [Config](/reference/api/go/aspire.hosting.docker/config.md) -- `handle` - 5 members -- Represents a configuration object in a Docker Compose file.
- [ConfigReference](/reference/api/go/aspire.hosting.docker/configreference.md) -- `handle` - 5 members -- Represents a reference to a configuration used within a service resource.
- [DockerComposeAspireDashboardResource](/reference/api/go/aspire.hosting.docker/dockercomposeaspiredashboardresource.md) -- `handle` - 5 members -- Represents a resource for the Aspire Dashboard. This resource is used to visualize telemetry data in the Aspire Hosting environment.
- [DockerComposeEnvironmentResource](/reference/api/go/aspire.hosting.docker/dockercomposeenvironmentresource.md) -- `handle` - 9 members -- Represents a Docker Compose environment resource that can host application resources.
- [DockerComposeServiceResource](/reference/api/go/aspire.hosting.docker/dockercomposeserviceresource.md) -- `handle` - 2 members -- Represents a compute resource for Docker Compose with strongly-typed properties.
- [Network](/reference/api/go/aspire.hosting.docker/network.md) -- `handle` - 8 members -- Represents a Docker network configuration as part of a Compose file.
- [Secret](/reference/api/go/aspire.hosting.docker/secret.md) -- `handle` - 4 members -- Represents a Secret object in a Docker Compose configuration file.
- [SecretReference](/reference/api/go/aspire.hosting.docker/secretreference.md) -- `handle` - 5 members -- Represents a reference to a secret within a Docker service configuration.
- [Service](/reference/api/go/aspire.hosting.docker/service.md) -- `handle` - 50 members -- Represents a Docker Compose service definition.
- [ServiceDependency](/reference/api/go/aspire.hosting.docker/servicedependency.md) -- `handle` - 1 members -- Represents a service dependency in a Docker Compose file.
- [Ulimit](/reference/api/go/aspire.hosting.docker/ulimit.md) -- `handle` - 2 members -- Represents the configuration for system resource limits (ulimits) for a container.
- [Volume](/reference/api/go/aspire.hosting.docker/volume.md) -- `handle` - 9 members -- Represents a volume definition in a Docker Compose configuration file.

## Functions

- [AddConfig](/reference/api/go/aspire.hosting.docker/addconfig.md) -- `method` - on `ComposeFile` -- Adds a top-level config definition to the Docker Compose file.
- [AddNetwork](/reference/api/go/aspire.hosting.docker/addnetwork.md) -- `method` - on `ComposeFile` -- Adds a top-level network definition to the Docker Compose file.
- [AddSecret](/reference/api/go/aspire.hosting.docker/addsecret.md) -- `method` - on `ComposeFile` -- Adds a top-level secret definition to the Docker Compose file.
- [AddService](/reference/api/go/aspire.hosting.docker/addservice.md) -- `method` - on `ComposeFile` -- Adds a service definition to the Docker Compose file.
- [AddVolume](/reference/api/go/aspire.hosting.docker/addvolume-composefile-string.md) -- `method` - on `ComposeFile` -- Adds a top-level volume definition to the Docker Compose file.
- [AddDockerComposeEnvironment](/reference/api/go/aspire.hosting.docker/adddockercomposeenvironment.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Docker Compose environment to the application model.
- [WithForwardedHeaders](/reference/api/go/aspire.hosting.docker/withforwardedheaders.md) -- `method` - on `DockerComposeAspireDashboardResource` -- Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
- [WithHostPort](/reference/api/go/aspire.hosting.docker/withhostport.md) -- `method` - on `DockerComposeAspireDashboardResource` -- Configures the port used to access the Aspire Dashboard from a browser.
- [ConfigureComposeFile](/reference/api/go/aspire.hosting.docker/configurecomposefile.md) -- `method` - on `DockerComposeEnvironmentResource` -- Configures the Docker Compose file for the environment resource.
- [ConfigureDashboard](/reference/api/go/aspire.hosting.docker/configuredashboard.md) -- `method` - on `DockerComposeEnvironmentResource` -- Configures the dashboard properties for this Docker Compose environment.
- [ConfigureEnvFile](/reference/api/go/aspire.hosting.docker/configureenvfile.md) -- `method` - on `DockerComposeEnvironmentResource` -- Configures the captured environment variables for the Docker Compose environment before they are written to the .env file.
- [WithDashboard](/reference/api/go/aspire.hosting.docker/withdashboard.md) -- `method` - on `DockerComposeEnvironmentResource` -- Enables the Aspire dashboard for telemetry visualization in this Docker Compose environment.
- [WithProperties](/reference/api/go/aspire.hosting.docker/withproperties.md) -- `method` - on `DockerComposeEnvironmentResource` -- Allows setting the properties of a Docker Compose environment resource.
- [PublishAsDockerComposeService](/reference/api/go/aspire.hosting.docker/publishasdockercomposeservice.md) -- `method` - on `IComputeResource` -- Publishes the specified resource as a Docker Compose service.
- [AsEnvironmentPlaceholder](/reference/api/go/aspire.hosting.docker/asenvironmentplaceholder.md) -- `method` - on `ParameterResource` -- Creates a Docker Compose environment variable placeholder from a parameter builder
- [AddVolume](/reference/api/go/aspire.hosting.docker/addvolume-service-string-string.md) -- `method` - on `Service` -- Adds a volume mount to a generated Docker Compose service.
