Service.addVolume
Method
interface Service { // ... omitted for brevity addVolume(source: string, target: string, type?: string, isReadOnly?: boolean, configure?: (obj: Volume) => Promise<void>): Service;}Signature
method
addVolumeAdds a volume mount to a generated Docker Compose service.
addVolume(source: string, target: string, type?: string, isReadOnly?: boolean, configure?: (obj: Volume) => Promise<void>): ServiceParameters
sourcestringtargetstringtypestringoptional= volumeisReadOnlybooleanoptionalconfigure(obj: Volume) => Promise<void>optionalReturns
ServiceDefined on
This method is defined on the following type: