DockerComposeEnvironmentResource
Handle
interface DockerComposeEnvironmentResource extends IComputeEnvironmentResource, IResource { dashboardEnabled: boolean; defaultNetworkName: string; configureComposeFile(configure: (obj: ComposeFile) => Promise<void>): DockerComposeEnvironmentResource; configureDashboard(configure: (obj: DockerComposeAspireDashboardResource) => Promise<void>): DockerComposeEnvironmentResource; configureEnvFile(configure: (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>): DockerComposeEnvironmentResource; getHostAddressExpression(endpointReference: EndpointReference): ReferenceExpression; withDashboard(enabled?: boolean): DockerComposeEnvironmentResource; withProperties(configure: (obj: DockerComposeEnvironmentResource) => Promise<void>): DockerComposeEnvironmentResource;}10 members
Properties
property
dashboardEnabledbooleanget · setDetermines whether to include an Aspire dashboard for telemetry visualization in this environment.
property
defaultNetworkNamestringget · setThe name of an existing network to be used.
Methods
Configures the Docker Compose file for the environment resource.
configureComposeFile(configure: (obj: ComposeFile) => Promise<void>): DockerComposeEnvironmentResourceParameters
configure(obj: ComposeFile) => Promise<void>Returns
DockerComposeEnvironmentResourceConfigures the dashboard properties for this Docker Compose environment.
configureDashboard(configure: (obj: DockerComposeAspireDashboardResource) => Promise<void>): DockerComposeEnvironmentResourceParameters
configure(obj: DockerComposeAspireDashboardResource) => Promise<void>Returns
DockerComposeEnvironmentResourceConfigures the captured environment variables for the Docker Compose environment before they are written to the .env file.
configureEnvFile(configure: (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>): DockerComposeEnvironmentResourceParameters
configure(obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>Returns
DockerComposeEnvironmentResourcemethod
getHostAddressExpressionInvokes the GetHostAddressExpression method
getHostAddressExpression(endpointReference: EndpointReference): ReferenceExpressionParameters
endpointReferenceEndpointReferenceReturns
ReferenceExpressionEnables the Aspire dashboard for telemetry visualization in this Docker Compose environment.
withDashboard(enabled?: boolean): DockerComposeEnvironmentResourceParameters
enabledbooleanoptional= TrueReturns
DockerComposeEnvironmentResourceAllows setting the properties of a Docker Compose environment resource.
withProperties(configure: (obj: DockerComposeEnvironmentResource) => Promise<void>): DockerComposeEnvironmentResourceParameters
configure(obj: DockerComposeEnvironmentResource) => Promise<void>Returns
DockerComposeEnvironmentResource