wip caddy deployment

This commit is contained in:
2025-04-24 19:55:39 +01:00
parent 46a76f7bce
commit afde59bd39
8 changed files with 126 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ namespace App\Drivers\Postgres;
use App\Data\Deployments\Plan;
use App\Data\Deployments\PlannedStep as Step;
use App\Drivers\DatabaseDriver;
use App\Models\Service;
use Illuminate\Support\Str;
class Postgres17Driver extends DatabaseDriver
@@ -14,6 +15,7 @@ class Postgres17Driver extends DatabaseDriver
public function __construct(
public ?string $containerName = null,
public ?string $containerId = null,
public ?Service $service = null,
public ?array $credentials = null,
) {
$credentials = $credentials ?? $this->defaultCredentials();
@@ -48,9 +50,10 @@ class Postgres17Driver extends DatabaseDriver
if ($db) {
$runCommand .= " -e POSTGRES_DB={$db}";
}
$runCommand .= ' -p 5432:5432 postgres:17';
$script->push($runCommand);
return $runCommand;
}
),