ComposeFile.addConfig

Method
📦 Aspire.Hosting.Docker v17.0.0
interface ComposeFile {
// ... omitted for brevity
addConfig(name: string, file?: string, content?: string, external?: boolean, configure?: (obj: Config) => Promise<void>): ComposeFile;
}

Signature

methodaddConfig
Adds a top-level config definition to the Docker Compose file.
addConfig(name: string, file?: string, content?: string, external?: boolean, configure?: (obj: Config) => Promise<void>): ComposeFile
namestringThe name of the config.
filestringoptionalThe path to the config file.
contentstringoptionalThe inline config content.
externalbooleanoptionalA value indicating whether the config is managed outside the generated Compose file.
configure(obj: Config) => Promise<void>optionalAn optional callback for further config customization.
ComposeFile

Defined on

This method is defined on the following type: