add default standalonedockernetwork
This commit is contained in:
parent
838d6f1981
commit
b07f2c486c
@ -82,8 +82,6 @@ public function handle()
|
|||||||
$pool->purge(url: "$bunny_cdn/$versions"),
|
$pool->purge(url: "$bunny_cdn/$versions"),
|
||||||
]);
|
]);
|
||||||
echo "All files uploaded & purged...\n";
|
echo "All files uploaded & purged...\n";
|
||||||
return;
|
|
||||||
throw new \Exception("Something went wrong.");
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
use App\Models\InstanceSettings;
|
use App\Models\InstanceSettings;
|
||||||
use App\Models\PrivateKey;
|
use App\Models\PrivateKey;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
|
use App\Models\StandaloneDocker;
|
||||||
use App\Models\Team;
|
use App\Models\Team;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
@ -98,5 +99,14 @@ public function run(): void
|
|||||||
$server->settings->is_validated = true;
|
$server->settings->is_validated = true;
|
||||||
$server->settings->save();
|
$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,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,4 +25,5 @@ services:
|
|||||||
- coolify
|
- coolify
|
||||||
networks:
|
networks:
|
||||||
coolify:
|
coolify:
|
||||||
|
name: coolify
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
14
scripts/run
14
scripts/run
@ -20,7 +20,7 @@ function help {
|
|||||||
compgen -A function | cat -n
|
compgen -A function | cat -n
|
||||||
}
|
}
|
||||||
|
|
||||||
function sync-bunny {
|
function sync:bunny {
|
||||||
php artisan sync:bunny --env=secrets
|
php artisan sync:bunny --env=secrets
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,19 +36,19 @@ function schedule {
|
|||||||
bash vendor/bin/spin exec -u webuser coolify php artisan schedule:work
|
bash vendor/bin/spin exec -u webuser coolify php artisan schedule:work
|
||||||
}
|
}
|
||||||
|
|
||||||
function schedule-run {
|
function schedule:run {
|
||||||
bash vendor/bin/spin exec -u webuser coolify php artisan schedule:run
|
bash vendor/bin/spin exec -u webuser coolify php artisan schedule:run
|
||||||
}
|
}
|
||||||
|
|
||||||
function db-reset {
|
function db:reset {
|
||||||
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
|
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
|
||||||
}
|
}
|
||||||
|
|
||||||
function mfs {
|
function mfs {
|
||||||
db-reset
|
db:reset
|
||||||
}
|
}
|
||||||
|
|
||||||
function db-reset-prod {
|
function db:reset-prod {
|
||||||
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder ||
|
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder ||
|
||||||
php artisan migrate:fresh --force --seed --seeder=ProductionSeeder
|
php artisan migrate:fresh --force --seed --seeder=ProductionSeeder
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ function coolify {
|
|||||||
bash vendor/bin/spin exec -u webuser coolify bash
|
bash vendor/bin/spin exec -u webuser coolify bash
|
||||||
}
|
}
|
||||||
|
|
||||||
function coolify-root {
|
function coolify:root {
|
||||||
bash vendor/bin/spin exec coolify bash
|
bash vendor/bin/spin exec coolify bash
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ function db {
|
|||||||
bash vendor/bin/spin exec -u webuser coolify php artisan db
|
bash vendor/bin/spin exec -u webuser coolify php artisan db
|
||||||
}
|
}
|
||||||
|
|
||||||
function build-builder {
|
function build:builder {
|
||||||
act -W .github/workflows/coolify-builder.yml --secret-file .env.secrets
|
act -W .github/workflows/coolify-builder.yml --secret-file .env.secrets
|
||||||
}
|
}
|
||||||
function default {
|
function default {
|
||||||
|
Loading…
Reference in New Issue
Block a user