# CommunityToolkit.Aspire.Hosting.DbGate

- Module: `CommunityToolkit.Aspire.Hosting.DbGate`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `4`
- Types: `1`

## Handles

- [DbGateContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.dbgate/dbgatecontainerresource.md) -- `handle` - 4 members -- Represents a container resource for DbGate.

## Functions

- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.dbgate/withdatabindmount.md) -- `method` - on `DbGateContainerResource` -- Adds a bind mount for the data folder to a DbGate container resource.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.dbgate/withdatavolume.md) -- `method` - on `DbGateContainerResource` -- Adds a named volume for the data folder to a DbGate container resource.
- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.dbgate/withhostport.md) -- `method` - on `DbGateContainerResource` -- Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.
- [AddDbGate](/reference/api/go/communitytoolkit.aspire.hosting.dbgate/adddbgate.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a DbGate container resource to the application.
