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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat: Add Argilla service configuration to Service model
Andras Bacsai3b97bb13416e
diff --git a/app/Models/Service.php b/app/Models/Service.phpindex 1c5979644e..dad9a30d95 100644--- a/app/Models/Service.php+++ b/app/Models/Service.php@@ -285,6 +285,44 @@ class Service extends BaseModelforeach ($applications as $application) {$image = str($application->image)->before(':')->value();switch ($image) {+ case str($image)?->contains('argilla'):+ $data = collect([]);+ $api_key = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_APIKEY')->first();+ $data = $data->merge([+ 'API Key' => [+ 'key' => data_get($api_key, 'key'),+ 'value' => data_get($api_key, 'value'),+ 'isPassword' => true,+ 'rules' => 'required',+ ],+ ]);+ $data = $data->merge([+ 'API Key' => [+ 'key' => data_get($api_key, 'key'),+ 'value' => data_get($api_key, 'value'),+ 'isPassword' => true,+ 'rules' => 'required',+ ],+ ]);+ $username = $this->environment_variables()->where('key', 'ARGILLA_USERNAME')->first();+ $data = $data->merge([+ 'Username' => [+ 'key' => data_get($username, 'key'),+ 'value' => data_get($username, 'value'),+ 'rules' => 'required',+ ],+ ]);+ $password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_ARGILLA')->first();+ $data = $data->merge([+ 'Password' => [+ 'key' => data_get($password, 'key'),+ 'value' => data_get($password, 'value'),+ 'rules' => 'required',+ 'isPassword' => true,+ ],+ ]);+ $fields->put('Argilla', $data->toArray());+ break;case str($image)?->contains('rabbitmq'):$data = collect([]);$host_port = $this->environment_variables()->where('key', 'PORT')->first();