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