app/Blueprint/Volumes/VolumeService/VolumeService.php
private function applyToSidekicks( Service $mainService, Volume $volume ) {
		if( ! $this->onSidekicks )
			return;

		foreach( $mainService->getSidekicks() as $sidekick )
			$sidekick->addVolume($volume);
	}
private function applyToSidekicks( Service $mainService, Volume $volume ) {
		if( ! $this->onSidekicks )
			return;

		foreach( $mainService->getSidekicks() as $sidekick )
			$sidekick->addVolume($volume);
	}
private function applyToSidekicks ( Service $ mainService , Volume $ volume ) { if ( ! $ this -> onSidekicks ) return ; foreach ( $ mainService -> getSidekicks ( ) as $ sidekick ) $ sidekick -> addVolume ( $ volume ) ; }
Applies the volumes to sidekicks of the mainService

In Rancher this could be done through volumes-from
with docker-compose volumes-from tends to create circular dependency problems

@param Service $mainService
@param Volume $volume
Applies the volumes to sidekicks of the mainService