2023-03-27 12:31:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Destination;
|
|
|
|
use App\Models\Server;
|
|
|
|
use App\Models\StandaloneDocker;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class StandaloneDockerSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2023-06-14 10:48:29 +00:00
|
|
|
$server_1 = Server::find(0);
|
2023-03-27 12:31:42 +00:00
|
|
|
StandaloneDocker::create([
|
2023-05-02 10:47:52 +00:00
|
|
|
'name' => 'Standalone Docker 1',
|
2023-03-30 07:47:04 +00:00
|
|
|
'network' => 'coolify',
|
2023-04-14 10:58:45 +00:00
|
|
|
'server_id' => $server_1->id,
|
2023-03-27 12:31:42 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|