DbGateContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.6.1
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
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount.
DbGateContainerResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a DbGate container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): DbGateContainerResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
DbGateContainerResource
methodwithHostPortbuilder
Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): DbGateContainerResource
portnumberThe port to bind on the host. If `null` is used random port will be assigned.
DbGateContainerResource