# ElasticvueContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.Elasticsearch.Extensions](/reference/api/typescript/communitytoolkit.aspire.hosting.elasticsearch.extensions.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

## Definition

```typescript
interface ElasticvueContainerResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withHostPort(port: number): ElasticvueContainerResource;
}
```

## Methods

- [withHostPort](/reference/api/typescript/communitytoolkit.aspire.hosting.elasticsearch.extensions/elasticvuecontainerresource/withhostport.md) -- `method` -- Configures the host port that the Elasticvue resource is exposed on instead of using randomly assigned port.
    ```typescript
  withHostPort(port: number): ElasticvueContainerResource
  ```
