# PgWebContainerResource

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

## Definition

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

## Methods

- [withHostPort](/reference/api/typescript/aspire.hosting.postgresql/pgwebcontainerresource/withhostport.md) -- `method` -- Sets the host port for pgweb
    ```typescript
  withHostPort(port: number): PgWebContainerResource
  ```
