Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(database): limit container name length for database proxy

Andras Bacsai18fe524cdbd5
diff --git a/app/Actions/Database/StartDatabaseProxy.php b/app/Actions/Database/StartDatabaseProxy.php
index c16a5638aa..8d7d1ce2e6 100644
--- a/app/Actions/Database/StartDatabaseProxy.php
+++ b/app/Actions/Database/StartDatabaseProxy.php
@@ -32,7 +32,7 @@ class StartDatabaseProxy
$network = $database->service->uuid;
$server = data_get($database, 'service.destination.server');
$proxyContainerName = "{$database->service->uuid}-proxy";
- $containerName = str($database->name)->slug().'-'.$database->s˝ervice->uuid;
+ $containerName = substr(str($database->name)->slug().'-'.$database->service->uuid, 0, 32);
}
$internalPort = match ($databaseType) {
'standalone-mariadb', 'standalone-mysql' => 3306,