addSecret
Method
interface ComposeFile { // ... omitted for brevity addSecret( name: string, file?: string, external?: boolean, configure?: callback): ComposeFile;}Signature
method
addSecretAdds a top-level secret definition to the Docker Compose file.
addSecret(name: string, file?: string, external?: boolean, configure?: (obj: Secret) => Promise<void>): ComposeFileParameters
namestringfilestringoptionalexternalbooleanoptionalconfigure(obj: Secret) => Promise<void>optionalReturns
ComposeFileApplies to
This method applies to the following types: