# DockerComposeEnvironmentResource.WithDashboard

- Module: [Aspire.Hosting.Docker](/reference/api/go/aspire.hosting.docker.md)
- Defined on: [DockerComposeEnvironmentResource](/reference/api/go/aspire.hosting.docker/dockercomposeenvironmentresource.md)
- Version: `17.0.0`
- Kind: `method`

Enables the Aspire dashboard for telemetry visualization in this Docker Compose environment.

## Definition

```go
type DockerComposeEnvironmentResource interface {
    // ... omitted for brevity
    WithDashboard(options ...*WithDashboardOptions) DockerComposeEnvironmentResource
}
```

## Signature

```go
WithDashboard(options ...*WithDashboardOptions) DockerComposeEnvironmentResource
```

## Parameters

- `options` (`...*WithDashboardOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDashboardOptions` argument.

- `Enabled` (`*bool`) -- Whether to enable the dashboard. Default is true.

## Returns

[`DockerComposeEnvironmentResource`](/reference/api/go/aspire.hosting.docker/dockercomposeenvironmentresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [DockerComposeEnvironmentResource](/reference/api/go/aspire.hosting.docker/dockercomposeenvironmentresource.md) -- `handle`
