Skip to content
Docs Try Aspire
Docs Try

DockerComposeEnvironmentResource

Handle
📦 Aspire.Hosting.Docker v13.3.0
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;
}

Properties

property dashboardEnabled boolean get · set
Gets the DashboardEnabled property
property defaultNetworkName string get · set
Gets the DefaultNetworkName property

Methods

method configureComposeFile builder
Configures the generated Docker Compose file before it is written to disk
configureComposeFile(configure: (obj: ComposeFile) => Promise<void>): DockerComposeEnvironmentResource
configure (obj: ComposeFile) => Promise<void>
DockerComposeEnvironmentResource
method configureDashboard builder
Configures the Aspire dashboard resource for the Docker Compose environment
configureDashboard(configure: (obj: DockerComposeAspireDashboardResource) => Promise<void>): DockerComposeEnvironmentResource
configure (obj: DockerComposeAspireDashboardResource) => Promise<void>
DockerComposeEnvironmentResource
method configureEnvFile builder
Configures the captured environment variables written to the Docker Compose .env file
configureEnvFile(configure: (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>): DockerComposeEnvironmentResource
configure (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>
DockerComposeEnvironmentResource
Invokes the GetHostAddressExpression method
getHostAddressExpression(endpointReference: EndpointReference): ReferenceExpression
endpointReference EndpointReference
ReferenceExpression
method withDashboard builder
Enables or disables the Aspire dashboard for the Docker Compose environment
withDashboard(enabled?: boolean): DockerComposeEnvironmentResource
enabled boolean optional = True
DockerComposeEnvironmentResource
method withProperties builder
Configures properties of the Docker Compose environment
withProperties(configure: (obj: DockerComposeEnvironmentResource) => Promise<void>): DockerComposeEnvironmentResource
configure (obj: DockerComposeEnvironmentResource) => Promise<void>
DockerComposeEnvironmentResource