# MongoExpressContainerResource

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

## Definition

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

## Methods

- [withHostPort](/reference/api/typescript/aspire.hosting.mongodb/mongoexpresscontainerresource/withhostport.md) -- `method` -- Sets the host port for the Mongo Express resource
    ```typescript
  withHostPort(port: number): MongoExpressContainerResource
  ```
