Skip to content

Commit

Permalink
feat: add database subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Dec 18, 2024
1 parent 340075a commit 5403fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap/helpers/docker.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function get_port_from_dockerfile($dockerfile): ?int
return null;
}

function defaultDatabaseLabels($database) {
function defaultDatabaseLabels($database)
{
$labels = collect([]);
$labels->push('coolify.managed=true');
$labels->push('coolify.type=database');
Expand All @@ -197,6 +198,7 @@ function defaultDatabaseLabels($database) {
$labels->push('coolify.serviceName='.Str::slug($database->name));
$labels->push('coolify.projectName='.Str::slug($database->project()->name));
$labels->push('coolify.environmentName='.Str::slug($database->environment->name));
$labels->push('coolify.database.subType='.$database->type());

return $labels;
}
Expand Down

0 comments on commit 5403fa7

Please sign in to comment.