# DockerComposeAspireDashboardResource

- Module: [Aspire.Hosting.Docker](/reference/api/typescript/aspire.hosting.docker.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Represents a resource for the Aspire Dashboard. This resource is used to visualize telemetry data in the Aspire Hosting environment.

## Definition

```typescript
interface DockerComposeAspireDashboardResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  readonly otlpGrpcEndpoint: EndpointReference;
  readonly primaryEndpoint: EndpointReference;
  withForwardedHeaders(enabled?: boolean): DockerComposeAspireDashboardResource;
  withHostPort(port?: number): DockerComposeAspireDashboardResource;
}
```

## Properties

- `otlpGrpcEndpoint`: `EndpointReference` `get` -- Gets the OTLP gRPC endpoint for telemetry data.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint of the Aspire Dashboard.

## Methods

- [withForwardedHeaders](/reference/api/typescript/aspire.hosting.docker/dockercomposeaspiredashboardresource/withforwardedheaders.md) -- `method` -- Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
    ```typescript
  withForwardedHeaders(enabled?: boolean): DockerComposeAspireDashboardResource
  ```
- [withHostPort](/reference/api/typescript/aspire.hosting.docker/dockercomposeaspiredashboardresource/withhostport.md) -- `method` -- Configures the port used to access the Aspire Dashboard from a browser.
    ```typescript
  withHostPort(port?: number): DockerComposeAspireDashboardResource
  ```
