Update dependencies and fix minor bugs.

This commit is contained in:
Andras Bacsai
2023-11-13 15:19:49 +01:00
parent 3dd9182281
commit 3fc264560c
8 changed files with 109 additions and 22 deletions

View File

@@ -20,6 +20,10 @@ class ServiceDatabase extends BaseModel
{
return 'service';
}
public function serviceType()
{
return null;
}
public function databaseType()
{
$image = str($this->image)->before(':');
@@ -28,7 +32,8 @@ class ServiceDatabase extends BaseModel
}
return "standalone-$image";
}
public function getServiceDatabaseUrl() {
public function getServiceDatabaseUrl()
{
$port = $this->public_port;
$realIp = $this->service->server->ip;
if ($realIp === 'host.docker.internal' || isDev()) {