ComposeFile.addService
Method
interface ComposeFile { // ... omitted for brevity addService(name: string, image?: string, configure?: (obj: Service) => Promise<void>): ComposeFile;}Signature
method
addServiceAdds a service definition to the Docker Compose file.
addService(name: string, image?: string, configure?: (obj: Service) => Promise<void>): ComposeFileParameters
namestringimagestringoptionalconfigure(obj: Service) => Promise<void>optionalReturns
ComposeFileDefined on
This method is defined on the following type: