ComposeFile.addConfig
Method
interface ComposeFile { // ... omitted for brevity addConfig(name: string, file?: string, content?: string, external?: boolean, configure?: (obj: Config) => Promise<void>): ComposeFile;}Signature
method
addConfig 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>): ComposeFileParameters
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.Returns
ComposeFile Defined on
This method is defined on the following type: