ComposeFile.addService

Method
📦 Aspire.Hosting.Docker v17.0.0
interface ComposeFile {
// ... omitted for brevity
addService(name: string, image?: string, configure?: (obj: Service) => Promise<void>): ComposeFile;
}

Signature

methodaddService
Adds a service definition to the Docker Compose file.
addService(name: string, image?: string, configure?: (obj: Service) => Promise<void>): ComposeFile
namestringThe name of the service.
imagestringoptionalThe container image to use for the service.
configure(obj: Service) => Promise<void>optionalAn optional callback for further service customization.
ComposeFile

Defined on

This method is defined on the following type: