Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
shared network mode - cascade to the actual target container if the t…
Browse files Browse the repository at this point in the history
…arget also shares its network
  • Loading branch information
svensp committed Aug 20, 2019
1 parent 4c8156c commit 6bef99d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public function __construct( Service $service ) {
* @return string
*/
public function getNetworkMode(): string {
$targetNetworkMode = $this->service->getNetworkModeObject();
if($targetNetworkMode instanceof self)
return $targetNetworkMode->getNetworkMode();

return container( 'shared-network-mode' ) . $this->service->getName();
}
}

0 comments on commit 6bef99d

Please sign in to comment.