fix: only append docker network if service/app is running

This commit is contained in:
Andras Bacsai
2024-08-01 13:47:58 +02:00
parent fd855847ff
commit e6e48c5812
4 changed files with 24 additions and 2 deletions

View File

@@ -77,6 +77,11 @@ class Service extends BaseModel
}
}
public function isRunning()
{
return (bool) str($this->status())->contains('running');
}
public function isExited()
{
return (bool) str($this->status())->contains('exited');