This commit is contained in:
Andras Bacsai
2023-08-28 20:52:45 +02:00
parent 556168892d
commit b4a3236284

View File

@@ -37,11 +37,14 @@ class InstallDocker
"docker network create --attachable coolify",
"echo ####### Done!"
], $server);
StandaloneDocker::create([
'name' => 'coolify',
'network' => 'coolify',
'server_id' => $server->id,
]);
$found = StandaloneDocker::where('server_id', $server->id);
if ($found->count() == 0) {
StandaloneDocker::create([
'name' => 'coolify',
'network' => 'coolify',
'server_id' => $server->id,
]);
}
}