add default standalonedockernetwork

This commit is contained in:
Andras Bacsai
2023-05-24 14:56:41 +02:00
parent 838d6f1981
commit b07f2c486c
4 changed files with 18 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ use App\Models\GitlabApp;
use App\Models\InstanceSettings;
use App\Models\PrivateKey;
use App\Models\Server;
use App\Models\StandaloneDocker;
use App\Models\Team;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Storage;
@@ -98,5 +99,14 @@ class ProductionSeeder extends Seeder
$server->settings->is_validated = true;
$server->settings->save();
}
if (StandaloneDocker::find(0) == null) {
StandaloneDocker::create([
'id' => 0,
'name' => 'localhost-coolify',
'description' => 'This is the standalone Docker instance that is used to run the Coolify services.',
'network' => 'coolify',
'server_id' => 0,
]);
}
}
}