add database labels

This commit is contained in:
Andras Bacsai
2024-11-02 14:04:59 +01:00
parent 8b2563088d
commit e4d20c1d02
8 changed files with 16 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ class StartMysql
],
'labels' => [
'coolify.managed' => 'true',
'coolify.type' => 'database',
'coolify.databaseId' => $this->database->id,
],
'healthcheck' => [
'test' => ['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', "-p{$this->database->mysql_root_password}"],