2023-03-27 08:44:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
|
|
use App\Models\Application;
|
2023-03-28 10:09:34 +00:00
|
|
|
use App\Models\GithubApp;
|
2026-03-11 14:30:46 +00:00
|
|
|
use App\Models\GitlabApp;
|
2023-03-27 12:31:42 +00:00
|
|
|
use App\Models\StandaloneDocker;
|
2023-03-27 08:44:31 +00:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
class ApplicationSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the database seeds.
|
|
|
|
|
*/
|
|
|
|
|
public function run(): void
|
|
|
|
|
{
|
2025-10-16 11:45:47 +00:00
|
|
|
Application::create([
|
2025-12-11 08:41:54 +00:00
|
|
|
'uuid' => 'docker-compose',
|
2025-10-16 11:45:47 +00:00
|
|
|
'name' => 'Docker Compose Example',
|
|
|
|
|
'repository_project_id' => 603035348,
|
|
|
|
|
'git_repository' => 'coollabsio/coolify-examples',
|
|
|
|
|
'git_branch' => 'v4.x',
|
|
|
|
|
'base_directory' => '/docker-compose',
|
2026-02-23 11:12:10 +00:00
|
|
|
'docker_compose_location' => '/docker-compose-test.yaml',
|
2025-10-16 11:45:47 +00:00
|
|
|
'build_pack' => 'dockercompose',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 1,
|
|
|
|
|
'source_type' => GithubApp::class,
|
|
|
|
|
]);
|
2023-03-27 16:14:33 +00:00
|
|
|
Application::create([
|
2025-12-11 08:41:54 +00:00
|
|
|
'uuid' => 'nodejs',
|
2024-03-06 14:34:21 +00:00
|
|
|
'name' => 'NodeJS Fastify Example',
|
2023-08-25 10:40:53 +00:00
|
|
|
'fqdn' => 'http://nodejs.127.0.0.1.sslip.io',
|
2023-05-11 13:20:02 +00:00
|
|
|
'repository_project_id' => 603035348,
|
2023-03-28 13:47:37 +00:00
|
|
|
'git_repository' => 'coollabsio/coolify-examples',
|
2025-05-05 07:04:09 +00:00
|
|
|
'git_branch' => 'v4.x',
|
2024-03-06 14:34:21 +00:00
|
|
|
'base_directory' => '/nodejs',
|
2023-03-28 13:47:37 +00:00
|
|
|
'build_pack' => 'nixpacks',
|
|
|
|
|
'ports_exposes' => '3000',
|
2023-08-07 16:46:40 +00:00
|
|
|
'environment_id' => 1,
|
2023-08-11 14:13:53 +00:00
|
|
|
'destination_id' => 0,
|
2023-03-27 12:31:42 +00:00
|
|
|
'destination_type' => StandaloneDocker::class,
|
2023-11-03 14:11:06 +00:00
|
|
|
'source_id' => 1,
|
2024-06-10 20:43:34 +00:00
|
|
|
'source_type' => GithubApp::class,
|
2023-08-11 20:41:47 +00:00
|
|
|
]);
|
|
|
|
|
Application::create([
|
2025-12-11 08:41:54 +00:00
|
|
|
'uuid' => 'dockerfile',
|
2024-03-06 14:34:21 +00:00
|
|
|
'name' => 'Dockerfile Example',
|
2023-08-25 10:40:53 +00:00
|
|
|
'fqdn' => 'http://dockerfile.127.0.0.1.sslip.io',
|
2023-08-11 20:41:47 +00:00
|
|
|
'repository_project_id' => 603035348,
|
|
|
|
|
'git_repository' => 'coollabsio/coolify-examples',
|
2025-05-05 07:04:09 +00:00
|
|
|
'git_branch' => 'v4.x',
|
2024-03-06 14:34:21 +00:00
|
|
|
'base_directory' => '/dockerfile',
|
2023-08-11 20:41:47 +00:00
|
|
|
'build_pack' => 'dockerfile',
|
2023-10-20 10:34:53 +00:00
|
|
|
'ports_exposes' => '80',
|
2023-08-11 20:41:47 +00:00
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 0,
|
2024-06-10 20:43:34 +00:00
|
|
|
'source_type' => GithubApp::class,
|
2023-03-27 08:44:31 +00:00
|
|
|
]);
|
2023-08-25 10:40:53 +00:00
|
|
|
Application::create([
|
2025-12-11 08:41:54 +00:00
|
|
|
'uuid' => 'dockerfile-pure',
|
2024-03-06 14:34:21 +00:00
|
|
|
'name' => 'Pure Dockerfile Example',
|
2023-08-25 10:40:53 +00:00
|
|
|
'fqdn' => 'http://pure-dockerfile.127.0.0.1.sslip.io',
|
|
|
|
|
'git_repository' => 'coollabsio/coolify',
|
2025-05-05 07:04:09 +00:00
|
|
|
'git_branch' => 'v4.x',
|
2023-08-25 10:40:53 +00:00
|
|
|
'git_commit_sha' => 'HEAD',
|
|
|
|
|
'build_pack' => 'dockerfile',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 0,
|
|
|
|
|
'source_type' => GithubApp::class,
|
|
|
|
|
'dockerfile' => 'FROM nginx
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|
2025-12-11 08:39:55 +00:00
|
|
|
',
|
|
|
|
|
]);
|
|
|
|
|
Application::create([
|
2025-12-11 08:41:54 +00:00
|
|
|
'uuid' => 'crashloop',
|
2025-12-11 08:39:55 +00:00
|
|
|
'name' => 'Crash Loop Example',
|
|
|
|
|
'git_repository' => 'coollabsio/coolify',
|
|
|
|
|
'git_branch' => 'v4.x',
|
|
|
|
|
'git_commit_sha' => 'HEAD',
|
|
|
|
|
'build_pack' => 'dockerfile',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 0,
|
|
|
|
|
'source_type' => GithubApp::class,
|
|
|
|
|
'dockerfile' => 'FROM alpine
|
|
|
|
|
CMD ["sh", "-c", "echo Crashing in 5 seconds... && sleep 5 && exit 1"]
|
2024-06-10 20:43:34 +00:00
|
|
|
',
|
2023-08-25 10:40:53 +00:00
|
|
|
]);
|
2026-03-12 13:23:25 +00:00
|
|
|
Application::create([
|
|
|
|
|
'uuid' => 'github-deploy-key',
|
|
|
|
|
'name' => 'GitHub Deploy Key Example',
|
|
|
|
|
'fqdn' => 'http://github-deploy-key.127.0.0.1.sslip.io',
|
|
|
|
|
'git_repository' => 'git@github.com:coollabsio/coolify-examples-deploy-key.git',
|
|
|
|
|
'git_branch' => 'main',
|
|
|
|
|
'build_pack' => 'nixpacks',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 0,
|
|
|
|
|
'source_type' => GithubApp::class,
|
|
|
|
|
'private_key_id' => 1,
|
|
|
|
|
]);
|
2026-03-11 14:30:46 +00:00
|
|
|
Application::create([
|
|
|
|
|
'uuid' => 'gitlab-deploy-key',
|
|
|
|
|
'name' => 'GitLab Deploy Key Example',
|
|
|
|
|
'fqdn' => 'http://gitlab-deploy-key.127.0.0.1.sslip.io',
|
|
|
|
|
'git_repository' => 'git@gitlab.com:coollabsio/php-example.git',
|
|
|
|
|
'git_branch' => 'main',
|
|
|
|
|
'build_pack' => 'nixpacks',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 1,
|
|
|
|
|
'source_type' => GitlabApp::class,
|
|
|
|
|
'private_key_id' => 1,
|
|
|
|
|
]);
|
|
|
|
|
Application::create([
|
|
|
|
|
'uuid' => 'gitlab-public-example',
|
|
|
|
|
'name' => 'GitLab Public Example',
|
|
|
|
|
'fqdn' => 'http://gitlab-public.127.0.0.1.sslip.io',
|
|
|
|
|
'git_repository' => 'https://gitlab.com/andrasbacsai/coolify-examples.git',
|
|
|
|
|
'base_directory' => '/astro/static',
|
|
|
|
|
'publish_directory' => '/dist',
|
|
|
|
|
'git_branch' => 'main',
|
|
|
|
|
'build_pack' => 'nixpacks',
|
|
|
|
|
'ports_exposes' => '80',
|
|
|
|
|
'environment_id' => 1,
|
|
|
|
|
'destination_id' => 0,
|
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
|
'source_id' => 1,
|
|
|
|
|
'source_type' => GitlabApp::class,
|
|
|
|
|
]);
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
2023-08-08 09:51:36 +00:00
|
|
|
}
|