Skip to content
Docs Try Aspire

publishAsDockerComposeService

Function
📦 Aspire.Hosting.Docker v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
publishAsDockerComposeService(configure: callback): IComputeResource;
}

Signature

method publishAsDockerComposeService builder
Publishes the resource as a Docker Compose service with custom service configuration
publishAsDockerComposeService(configure: (arg1: DockerComposeServiceResource, arg2: Service) => void): IComputeResource
configure (arg1: DockerComposeServiceResource, arg2: Service) => void
IComputeResource

Applies to

This function is an extension method on the following types: