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