chore: Add comment explaining the purpose of disconnecting the network in cleanup_unused_network_from_coolify_proxy()
This commit is contained in:
parent
012d660886
commit
3269ca3eb8
1 changed files with 1 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ private function cleanup_unused_network_from_coolify_proxy()
|
|||
} else {
|
||||
$data = collect(json_decode($out, true));
|
||||
if ($data->count() === 1) {
|
||||
// If only coolify-proxy itself is connected to that network (it should not be possible, but who knows)
|
||||
$isCoolifyProxyItself = data_get($data->first(), 'Name') === 'coolify-proxy';
|
||||
if ($isCoolifyProxyItself) {
|
||||
$commands->push("docker network disconnect $network coolify-proxy >/dev/null 2>&1 || true");
|
||||
|
|
|
|||
Loading…
Reference in a new issue