mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
fix: only append docker network if service/app is running
This commit is contained in:
1 parent
fd855847ff
commit
e6e48c5812
4 files changed
+24
-2
No files matched your search
@@ -451,6 +451,11 @@ class Application extends BaseModel
|
||||
);
|
||||
}
|
||||
|
||||
public function isRunning()
|
||||
{
|
||||
return (bool) str($this->status)->startsWith('running');
|
||||
}
|
||||
|
||||
public function isExited()
|
||||
{
|
||||
return (bool) str($this->status)->startsWith('exited');
|
||||
|
||||
Reference in new issue
Block a user