Skip to content
DocsTry Aspire
DocsTry

DbGateContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.4.0
interface DbGateContainerResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
readonly primaryEndpoint: EndpointReference;
withDataBindMount(
source: string,
isReadOnly?: boolean): DbGateContainerResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): DbGateContainerResource;
withHostPort(port: number): DbGateContainerResource;
}

Properties

propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint for the DbGate.

Methods

methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a DbGate container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): DbGateContainerResource
sourcestring
isReadOnlybooleanoptional= False
DbGateContainerResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a DbGate container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): DbGateContainerResource
namestringoptional
isReadOnlybooleanoptional= False
DbGateContainerResource
methodwithHostPortbuilder
Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): DbGateContainerResource
portnumber
DbGateContainerResource