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