fix: database status
This commit is contained in:
parent
b8cf314bfe
commit
0b81e77a94
@ -225,13 +225,16 @@ class Server extends BaseModel
|
|||||||
$services = $this->services();
|
$services = $this->services();
|
||||||
return $applications->concat($databases)->concat($services->get());
|
return $applications->concat($databases)->concat($services->get());
|
||||||
}
|
}
|
||||||
public function stopUnmanaged($id) {
|
public function stopUnmanaged($id)
|
||||||
|
{
|
||||||
return instant_remote_process(["docker stop -t 0 $id"], $this);
|
return instant_remote_process(["docker stop -t 0 $id"], $this);
|
||||||
}
|
}
|
||||||
public function restartUnmanaged($id) {
|
public function restartUnmanaged($id)
|
||||||
|
{
|
||||||
return instant_remote_process(["docker restart $id"], $this);
|
return instant_remote_process(["docker restart $id"], $this);
|
||||||
}
|
}
|
||||||
public function startUnmanaged($id) {
|
public function startUnmanaged($id)
|
||||||
|
{
|
||||||
return instant_remote_process(["docker start $id"], $this);
|
return instant_remote_process(["docker start $id"], $this);
|
||||||
}
|
}
|
||||||
public function loadUnmanagedContainers()
|
public function loadUnmanagedContainers()
|
||||||
@ -269,7 +272,7 @@ class Server extends BaseModel
|
|||||||
$mariadbs = data_get($standaloneDocker, 'mariadbs', collect([]));
|
$mariadbs = data_get($standaloneDocker, 'mariadbs', collect([]));
|
||||||
return $postgresqls->concat($redis)->concat($mongodbs)->concat($mysqls)->concat($mariadbs);
|
return $postgresqls->concat($redis)->concat($mongodbs)->concat($mysqls)->concat($mariadbs);
|
||||||
})->filter(function ($item) {
|
})->filter(function ($item) {
|
||||||
return data_get($item, 'name') === 'coolify-db';
|
return data_get($item, 'name') !== 'coolify-db';
|
||||||
})->flatten();
|
})->flatten();
|
||||||
}
|
}
|
||||||
public function applications()
|
public function applications()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user