# RedisInsightResource

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

## Definition

```typescript
interface RedisInsightResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withDataBindMount(source: string): RedisInsightResource;
  withDataVolume(name?: string): RedisInsightResource;
  withHostPort(port: number): RedisInsightResource;
}
```

## Methods

- [withDataBindMount](/reference/api/typescript/aspire.hosting.redis/redisinsightresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Redis Insight container resource.
    ```typescript
  withDataBindMount(source: string): RedisInsightResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.redis/redisinsightresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Redis Insight container resource.
    ```typescript
  withDataVolume(name?: string): RedisInsightResource
  ```
- [withHostPort](/reference/api/typescript/aspire.hosting.redis/redisinsightresource/withhostport.md) -- `method` -- Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
    ```typescript
  withHostPort(port: number): RedisInsightResource
  ```
