Compare commits

...

51 Commits

Author SHA1 Message Date
Andras Bacsai
bd7fd725f6 Merge pull request #2068 from coollabsio/next
v4.0.0-beta.267
2024-04-26 10:37:47 +02:00
Andras Bacsai
3e0440ba53 feat: initial datalist 2024-04-26 10:33:55 +02:00
Andras Bacsai
83a29f8d85 Refactor parseDockerComposeFile function in shared.php to escape service labels with escapeDollarSign 2024-04-26 09:32:47 +02:00
Andras Bacsai
96883dabe3 fix tags + ui 2024-04-25 15:04:49 +02:00
Andras Bacsai
da521020f6 Fix styling issues and add new badge class in app.css 2024-04-25 14:51:25 +02:00
Andras Bacsai
ac78738061 Fix styling issues in index.blade.php 2024-04-25 14:32:37 +02:00
Andras Bacsai
b78ca71c0f Fix disabling of environment variables starting with SERVICE_FQDN or SERVICE_URL in Show.php 2024-04-25 14:29:23 +02:00
Andras Bacsai
cd7272d00a Fix environment variable generation in ApplicationDeploymentJob.php 2024-04-25 14:15:44 +02:00
Andras Bacsai
cd7489c569 Update version.php to 4.0.0-beta.267 2024-04-25 14:12:43 +02:00
Andras Bacsai
1f3f369df0 Merge branch 'main' into next 2024-04-25 13:55:57 +02:00
Andras Bacsai
911e29f2ea fix: refresh public ips on start 2024-04-25 13:52:52 +02:00
Andras Bacsai
d7b359e432 Fix cleanup of stuck resources in CleanupStuckedResources.php 2024-04-25 13:44:36 +02:00
Andras Bacsai
0b2c92cbe5 able to change storage name and path 2024-04-25 13:37:45 +02:00
Andras Bacsai
f626d964c5 Fix environment variable generation in ApplicationDeploymentJob.php 2024-04-25 13:25:35 +02:00
Andras Bacsai
b0e0b38549 Merge pull request #2037 from stefankommm/fix-branch-name
Fix: Encapsulated branch name when cloning branch
2024-04-25 13:16:06 +02:00
Andras Bacsai
94af4b2c7b Add pull request template with instructions to use 'next' branch as destination 2024-04-25 13:15:29 +02:00
Andras Bacsai
0b235e146f Fix readonly attribute in source.blade.php 2024-04-25 13:10:54 +02:00
Andras Bacsai
40f3301324 Fix remove dropzone script async attribute 2024-04-25 13:10:50 +02:00
Andras Bacsai
4fe90e59a8 Fix formatting issue in select.blade.php 2024-04-25 13:01:40 +02:00
Andras Bacsai
b28611ed08 Fix typo in create-scheduled-backup.blade.php 2024-04-25 12:59:25 +02:00
Andras Bacsai
672ad22e4f fix: n8n template 2024-04-25 12:32:35 +02:00
Andras Bacsai
c17bd5ec3a fix: able to select server when creating new destination 2024-04-25 12:14:02 +02:00
Andras Bacsai
2770755f9d feat: add db name to backup notifications 2024-04-25 12:09:46 +02:00
Andras Bacsai
ee69cdbf7b fix: 500 error on edge case 2024-04-25 12:09:36 +02:00
Andras Bacsai
a72a25640f fix: do no able to delete gh app without deleting resources 2024-04-25 11:53:06 +02:00
Andras Bacsai
e86f8ddd09 fix: caddy network issue
feat: connect compose based apps to predefined network
2024-04-25 11:49:34 +02:00
Andras Bacsai
66bdb39f1a Update version numbers to 4.0.0-beta.267 2024-04-24 18:03:20 +02:00
Andras Bacsai
b499a2ab87 Merge pull request #2027 from coollabsio/next
v4.0.0-beta.266
2024-04-24 14:35:04 +02:00
Andras Bacsai
49e4482947 Fix issue with logging environment variables in ApplicationDeploymentJob.php 2024-04-24 14:34:03 +02:00
Andras Bacsai
6e7e4250e6 Fix issue with logging environment variables in ApplicationDeploymentJob.php 2024-04-24 14:33:20 +02:00
Andras Bacsai
5a8ea15c4f Fix issue with saving environment variables in ApplicationDeploymentJob.php 2024-04-24 14:32:34 +02:00
Marek Štefanko
f9aa029e8e Added " " to encapsulate branch name when cloning 2024-04-20 00:10:50 +02:00
Andras Bacsai
51e918be6d Fix issue with pulling helper image in Kernel.php and ApplicationDeploymentJob.php 2024-04-18 14:01:35 +02:00
Andras Bacsai
b0170eea8f Update version numbers to 4.0.0-beta.266 2024-04-18 14:01:29 +02:00
Andras Bacsai
144b34ca2e Merge pull request #2025 from coollabsio/next
v4.0.0-beta.265
2024-04-18 13:54:23 +02:00
Andras Bacsai
676c022e41 fix: .env saved to deployment server, not to build server 2024-04-18 13:53:10 +02:00
Andras Bacsai
7c0b98bb70 Fix sorting issue in save_environment_variables() function 2024-04-18 12:37:06 +02:00
Andras Bacsai
7779713392 Fix issue with user validation in Server.php 2024-04-18 11:48:10 +02:00
Andras Bacsai
5e1396025c Fix issue with saving environment variables in ApplicationDeploymentJob.php 2024-04-18 11:41:58 +02:00
Andras Bacsai
d09c88f71c Fix formatting issue in deployment show.blade.php 2024-04-18 11:14:26 +02:00
Andras Bacsai
7980f21b1b Update version numbers to 4.0.0-beta.265 2024-04-18 11:14:23 +02:00
Andras Bacsai
3843994a05 Merge pull request #2022 from coollabsio/next
v4.0.0-beta.264
2024-04-18 06:58:01 +02:00
Andras Bacsai
a1b08ca037 revert .env changes 2024-04-18 06:55:47 +02:00
Andras Bacsai
144cdd11ec Update version numbers to 4.0.0-beta.264 2024-04-18 06:55:40 +02:00
Andras Bacsai
b6531cdb10 Merge pull request #2016 from coollabsio/next
v4.0.0-beta.262
2024-04-17 18:50:54 +02:00
Andras Bacsai
0eef4a5fa1 Fix DNS validation issue and check domain usage 2024-04-17 18:49:31 +02:00
Andras Bacsai
42baaf8f2d Update version numbers to 4.0.0-beta.263 2024-04-17 18:49:25 +02:00
Andras Bacsai
08d9dff8eb Merge pull request #2014 from coollabsio/next
v4.0.0-beta.262
2024-04-17 16:47:14 +02:00
Andras Bacsai
01b3aab9bc fix: $ in labels escaped 2024-04-17 16:46:12 +02:00
Andras Bacsai
fde34ef178 version++ 2024-04-17 16:46:00 +02:00
Andras Bacsai
5195abec94 Update slogans in appsmith.yaml, appwrite.yaml, babybuddy.yaml, and budge.yaml 2024-04-17 15:48:14 +02:00
57 changed files with 609 additions and 357 deletions

1
.github/pull_request_template.md vendored Normal file
View File

@@ -0,0 +1 @@
> Always use `next` branch as destination branch for PRs, not `main`

View File

@@ -62,7 +62,7 @@ class CleanupStuckedResources extends Command
$keydbs = StandaloneKeydb::withTrashed()->whereNotNull('deleted_at')->get(); $keydbs = StandaloneKeydb::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($keydbs as $keydb) { foreach ($keydbs as $keydb) {
echo "Deleting stuck keydb: {$keydb->name}\n"; echo "Deleting stuck keydb: {$keydb->name}\n";
$redis->forceDelete(); $keydb->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stuck keydb: {$e->getMessage()}\n"; echo "Error in cleaning stuck keydb: {$e->getMessage()}\n";
@@ -71,7 +71,7 @@ class CleanupStuckedResources extends Command
$dragonflies = StandaloneDragonfly::withTrashed()->whereNotNull('deleted_at')->get(); $dragonflies = StandaloneDragonfly::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($dragonflies as $dragonfly) { foreach ($dragonflies as $dragonfly) {
echo "Deleting stuck dragonfly: {$dragonfly->name}\n"; echo "Deleting stuck dragonfly: {$dragonfly->name}\n";
$redis->forceDelete(); $dragonfly->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stuck dragonfly: {$e->getMessage()}\n"; echo "Error in cleaning stuck dragonfly: {$e->getMessage()}\n";
@@ -80,7 +80,7 @@ class CleanupStuckedResources extends Command
$clickhouses = StandaloneClickhouse::withTrashed()->whereNotNull('deleted_at')->get(); $clickhouses = StandaloneClickhouse::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($clickhouses as $clickhouse) { foreach ($clickhouses as $clickhouse) {
echo "Deleting stuck clickhouse: {$clickhouse->name}\n"; echo "Deleting stuck clickhouse: {$clickhouse->name}\n";
$redis->forceDelete(); $clickhouse->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stuck clickhouse: {$e->getMessage()}\n"; echo "Error in cleaning stuck clickhouse: {$e->getMessage()}\n";

View File

@@ -20,6 +20,7 @@ class Init extends Command
public function handle() public function handle()
{ {
$this->alive(); $this->alive();
get_public_ips();
$full_cleanup = $this->option('full-cleanup'); $full_cleanup = $this->option('full-cleanup');
$cleanup_deployments = $this->option('cleanup-deployments'); $cleanup_deployments = $this->option('cleanup-deployments');
if ($cleanup_deployments) { if ($cleanup_deployments) {
@@ -56,6 +57,7 @@ class Init extends Command
$this->cleanup_stucked_helper_containers(); $this->cleanup_stucked_helper_containers();
$this->call('cleanup:stucked-resources'); $this->call('cleanup:stucked-resources');
} }
private function restore_coolify_db_backup() private function restore_coolify_db_backup()
{ {
try { try {

View File

@@ -46,7 +46,7 @@ class Kernel extends ConsoleKernel
$this->instance_auto_update($schedule); $this->instance_auto_update($schedule);
$this->check_scheduled_backups($schedule); $this->check_scheduled_backups($schedule);
$this->check_resources($schedule); $this->check_resources($schedule);
// $this->pull_helper_image($schedule); $this->pull_helper_image($schedule);
$this->check_scheduled_tasks($schedule); $this->check_scheduled_tasks($schedule);
$schedule->command('cleanup:database --yes')->daily(); $schedule->command('cleanup:database --yes')->daily();

View File

@@ -718,10 +718,11 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
if ($env->version === '4.0.0-beta.239') { if ($env->version === '4.0.0-beta.239') {
$real_value = $env->real_value; $real_value = $env->real_value;
} else { } else {
$real_value = escapeEnvVariables($env->real_value); if ($env->is_literal) {
} $real_value = '\'' . $real_value . '\'';
if ($env->is_literal) { } else {
$real_value = '\'' . $real_value . '\''; $real_value = escapeEnvVariables($env->real_value);
}
} }
$envs->push($env->key . '=' . $real_value); $envs->push($env->key . '=' . $real_value);
} }
@@ -740,17 +741,21 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
$envs->push("SOURCE_COMMIT=unknown"); $envs->push("SOURCE_COMMIT=unknown");
} }
} }
$envs = $envs->sort(function ($a, $b) {
return strpos($a, '$') === false ? -1 : 1;
});
} else { } else {
$this->env_filename = ".env-coolify"; $this->env_filename = ".env";
foreach ($this->application->environment_variables as $env) { foreach ($this->application->environment_variables as $env) {
$real_value = $env->real_value; $real_value = $env->real_value;
if ($env->version === '4.0.0-beta.239') { if ($env->version === '4.0.0-beta.239') {
$real_value = $env->real_value; $real_value = $env->real_value;
} else { } else {
$real_value = escapeEnvVariables($env->real_value); if ($env->is_literal) {
} $real_value = '\'' . $real_value . '\'';
if ($env->is_literal) { } else {
$real_value = '\'' . $real_value . '\''; $real_value = escapeEnvVariables($env->real_value);
}
} }
$envs->push($env->key . '=' . $real_value); $envs->push($env->key . '=' . $real_value);
} }
@@ -775,6 +780,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
if ($envs->isEmpty()) { if ($envs->isEmpty()) {
$this->env_filename = null;
if ($this->use_build_server) {
$this->server = $this->original_server;
}
$this->execute_remote_command( $this->execute_remote_command(
[ [
"command" => "rm -f $this->configuration_dir/{$this->env_filename}", "command" => "rm -f $this->configuration_dir/{$this->env_filename}",
@@ -782,39 +791,51 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
"ignore_errors" => true "ignore_errors" => true
] ]
); );
$this->env_filename = null; if ($this->use_build_server) {
return; $this->server = $this->build_server;
} }
$this->execute_remote_command([
executeInDocker($this->deployment_uuid, "cat $this->workdir/.env 2>/dev/null || true"),
"hidden" => true,
"save" => "dotenv"
]);
if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) {
$base64_dotenv = base64_encode($this->saved_outputs->get('dotenv')->value());
$this->execute_remote_command(
[
"echo '{$base64_dotenv}' | base64 -d | tee $this->configuration_dir/.env > /dev/null"
]
);
} else { } else {
$envs_base64 = base64_encode($envs->implode("\n"));
$this->execute_remote_command( $this->execute_remote_command(
[ [
"command" => "rm -f $this->configuration_dir/.env", executeInDocker($this->deployment_uuid, "echo '$envs_base64' | base64 -d | tee $this->workdir/{$this->env_filename} > /dev/null")
"hidden" => true, ],
"ignore_errors" => true
);
if ($this->use_build_server) {
$this->server = $this->original_server;
}
$this->execute_remote_command(
[
"echo '$envs_base64' | base64 -d | tee $this->configuration_dir/{$this->env_filename} > /dev/null"
] ]
); );
if ($this->use_build_server) {
$this->server = $this->build_server;
}
} }
$envs_base64 = base64_encode($envs->implode("\n")); // $this->execute_remote_command([
$this->execute_remote_command( // executeInDocker($this->deployment_uuid, "cat $this->workdir/.env 2>/dev/null || true"),
[ // "hidden" => true,
executeInDocker($this->deployment_uuid, "echo '$envs_base64' | base64 -d | tee $this->workdir/{$this->env_filename} > /dev/null") // "save" => "dotenv"
], // ]);
[ // if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) {
"echo '$envs_base64' | base64 -d | tee $this->configuration_dir/{$this->env_filename} > /dev/null" // $base64_dotenv = base64_encode($this->saved_outputs->get('dotenv')->value());
] // $this->execute_remote_command(
); // [
// "echo '{$base64_dotenv}' | base64 -d | tee $this->configuration_dir/.env > /dev/null"
// ]
// );
// } else {
// $this->execute_remote_command(
// [
// "command" => "rm -f $this->configuration_dir/.env",
// "hidden" => true,
// "ignore_errors" => true
// ]
// );
// }
} }
@@ -978,10 +999,6 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
$this->application_deployment_queue->addLogEntry("Preparing container with helper image: $helperImage."); $this->application_deployment_queue->addLogEntry("Preparing container with helper image: $helperImage.");
$this->execute_remote_command( $this->execute_remote_command(
[
"command" => "docker pull -q {$helperImage}",
"hidden" => true
],
[ [
"command" => "docker rm -f {$this->deployment_uuid}", "command" => "docker rm -f {$this->deployment_uuid}",
"ignore_errors" => true, "ignore_errors" => true,
@@ -1239,8 +1256,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
if ($this->pull_request_id !== 0) { if ($this->pull_request_id !== 0) {
$labels = collect(generateLabelsApplication($this->application, $this->preview)); $labels = collect(generateLabelsApplication($this->application, $this->preview));
} }
$labels = $labels->map(function ($value, $key) {
return escapeDollarSign($value);
});
$labels = $labels->merge(defaultLabels($this->application->id, $this->application->uuid, $this->pull_request_id))->toArray(); $labels = $labels->merge(defaultLabels($this->application->id, $this->application->uuid, $this->pull_request_id))->toArray();
// Check for custom HEALTHCHECK // Check for custom HEALTHCHECK
$this->custom_healthcheck_found = false; $this->custom_healthcheck_found = false;
if ($this->application->build_pack === 'dockerfile' || $this->application->dockerfile) { if ($this->application->build_pack === 'dockerfile' || $this->application->dockerfile) {
@@ -1279,21 +1298,23 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
] ]
] ]
]; ];
if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) { // if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) {
if (data_get($docker_compose, "services.{$this->container_name}.env_file")) { // if (data_get($docker_compose, "services.{$this->container_name}.env_file")) {
$docker_compose['services'][$this->container_name]['env_file'][] = '.env'; // $docker_compose['services'][$this->container_name]['env_file'][] = '.env';
} else { // } else {
$docker_compose['services'][$this->container_name]['env_file'] = ['.env']; // $docker_compose['services'][$this->container_name]['env_file'] = ['.env'];
} // }
// }
// if ($this->env_filename) {
// if (data_get($docker_compose, "services.{$this->container_name}.env_file")) {
// $docker_compose['services'][$this->container_name]['env_file'][] = $this->env_filename;
// } else {
// $docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];
// }
// }
if (!is_null($this->env_filename)) {
$docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];
} }
if ($this->env_filename) {
if (data_get($docker_compose, "services.{$this->container_name}.env_file")) {
$docker_compose['services'][$this->container_name]['env_file'][] = $this->env_filename;
} else {
$docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];
}
}
if (!$this->custom_healthcheck_found) { if (!$this->custom_healthcheck_found) {
$docker_compose['services'][$this->container_name]['healthcheck'] = [ $docker_compose['services'][$this->container_name]['healthcheck'] = [
'test' => [ 'test' => [
@@ -1487,7 +1508,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
return $local_persistent_volumes_names; return $local_persistent_volumes_names;
} }
private function generate_environment_variables($ports) /*private function generate_environment_variables($ports)
{ {
$environment_variables = collect(); $environment_variables = collect();
if ($this->pull_request_id === 0) { if ($this->pull_request_id === 0) {
@@ -1505,8 +1526,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
if ($env->is_literal) { if ($env->is_literal) {
$real_value = escapeDollarSign($real_value); $real_value = escapeDollarSign($real_value);
$environment_variables->push("$env->key='$real_value'");
} else {
$environment_variables->push("$env->key=$real_value");
} }
$environment_variables->push("$env->key=$real_value");
} }
foreach ($this->application->nixpacks_environment_variables as $env) { foreach ($this->application->nixpacks_environment_variables as $env) {
if ($env->version === '4.0.0-beta.239') { if ($env->version === '4.0.0-beta.239') {
@@ -1516,8 +1539,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
if ($env->is_literal) { if ($env->is_literal) {
$real_value = escapeDollarSign($real_value); $real_value = escapeDollarSign($real_value);
$environment_variables->push("$env->key='$real_value'");
} else {
$environment_variables->push("$env->key=$real_value");
} }
$environment_variables->push("$env->key=$real_value");
} }
} else { } else {
foreach ($this->application->runtime_environment_variables_preview as $env) { foreach ($this->application->runtime_environment_variables_preview as $env) {
@@ -1528,8 +1553,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
if ($env->is_literal) { if ($env->is_literal) {
$real_value = escapeDollarSign($real_value); $real_value = escapeDollarSign($real_value);
$environment_variables->push("$env->key='$real_value'");
} else {
$environment_variables->push("$env->key=$real_value");
} }
$environment_variables->push("$env->key=$real_value");
} }
foreach ($this->application->nixpacks_environment_variables_preview as $env) { foreach ($this->application->nixpacks_environment_variables_preview as $env) {
if ($env->version === '4.0.0-beta.239') { if ($env->version === '4.0.0-beta.239') {
@@ -1539,8 +1566,10 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} }
if ($env->is_literal) { if ($env->is_literal) {
$real_value = escapeDollarSign($real_value); $real_value = escapeDollarSign($real_value);
$environment_variables->push("$env->key='$real_value'");
} else {
$environment_variables->push("$env->key=$real_value");
} }
$environment_variables->push("$env->key=$real_value");
} }
} }
// Add PORT if not exists, use the first port as default // Add PORT if not exists, use the first port as default
@@ -1558,8 +1587,9 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
$environment_variables->push("SOURCE_COMMIT=unknown"); $environment_variables->push("SOURCE_COMMIT=unknown");
} }
} }
ray($environment_variables->all());
return $environment_variables->all(); return $environment_variables->all();
} }*/
private function generate_healthcheck_commands() private function generate_healthcheck_commands()
{ {

View File

@@ -27,6 +27,8 @@ class Advanced extends Component
'application.settings.gpu_count' => 'string|required', 'application.settings.gpu_count' => 'string|required',
'application.settings.gpu_device_ids' => 'string|required', 'application.settings.gpu_device_ids' => 'string|required',
'application.settings.gpu_options' => 'string|required', 'application.settings.gpu_options' => 'string|required',
'application.settings.is_raw_compose_deployment_enabled' => 'boolean|required',
'application.settings.connect_to_docker_network' => 'boolean|required',
]; ];
public function mount() { public function mount() {
$this->is_force_https_enabled = $this->application->isForceHttpsEnabled(); $this->is_force_https_enabled = $this->application->isForceHttpsEnabled();
@@ -54,8 +56,14 @@ class Advanced extends Component
$this->application->settings->is_stripprefix_enabled = $this->is_stripprefix_enabled; $this->application->settings->is_stripprefix_enabled = $this->is_stripprefix_enabled;
$this->dispatch('resetDefaultLabels', false); $this->dispatch('resetDefaultLabels', false);
} }
if ($this->application->settings->is_raw_compose_deployment_enabled) {
$this->application->parseRawCompose();
} else {
$this->application->parseCompose();
}
$this->application->settings->save(); $this->application->settings->save();
$this->dispatch('success', 'Settings saved.'); $this->dispatch('success', 'Settings saved.');
$this->dispatch('configurationChanged');
} }
public function submit() { public function submit() {
if ($this->application->settings->gpu_count && $this->application->settings->gpu_device_ids) { if ($this->application->settings->gpu_count && $this->application->settings->gpu_device_ids) {

View File

@@ -34,7 +34,8 @@ class General extends Component
public $parsedServiceDomains = []; public $parsedServiceDomains = [];
protected $listeners = [ protected $listeners = [
'resetDefaultLabels' 'resetDefaultLabels',
'configurationChanged' => '$refresh'
]; ];
protected $rules = [ protected $rules = [
'application.name' => 'required', 'application.name' => 'required',
@@ -72,7 +73,6 @@ class General extends Component
'application.post_deployment_command' => 'nullable', 'application.post_deployment_command' => 'nullable',
'application.post_deployment_command_container' => 'nullable', 'application.post_deployment_command_container' => 'nullable',
'application.settings.is_static' => 'boolean|required', 'application.settings.is_static' => 'boolean|required',
'application.settings.is_raw_compose_deployment_enabled' => 'boolean|required',
'application.settings.is_build_server_enabled' => 'boolean|required', 'application.settings.is_build_server_enabled' => 'boolean|required',
'application.watch_paths' => 'nullable', 'application.watch_paths' => 'nullable',
]; ];
@@ -108,7 +108,6 @@ class General extends Component
'application.docker_compose_custom_start_command' => 'Docker compose custom start command', 'application.docker_compose_custom_start_command' => 'Docker compose custom start command',
'application.docker_compose_custom_build_command' => 'Docker compose custom build command', 'application.docker_compose_custom_build_command' => 'Docker compose custom build command',
'application.settings.is_static' => 'Is static', 'application.settings.is_static' => 'Is static',
'application.settings.is_raw_compose_deployment_enabled' => 'Is raw compose deployment enabled',
'application.settings.is_build_server_enabled' => 'Is build server enabled', 'application.settings.is_build_server_enabled' => 'Is build server enabled',
'application.watch_paths' => 'Watch paths', 'application.watch_paths' => 'Watch paths',
]; ];
@@ -337,11 +336,6 @@ class General extends Component
check_domain_usage(resource: $this->application); check_domain_usage(resource: $this->application);
} }
} }
if ($this->application->settings->is_raw_compose_deployment_enabled) {
$this->application->parseRawCompose();
} else {
$this->parsedServices = $this->application->parseCompose();
}
} }
$this->application->custom_labels = base64_encode($this->customLabels); $this->application->custom_labels = base64_encode($this->customLabels);
$this->application->save(); $this->application->save();

View File

@@ -50,9 +50,9 @@ class Show extends Component
public function checkEnvs() public function checkEnvs()
{ {
$this->isDisabled = false; $this->isDisabled = false;
// if (str($this->env->key)->startsWith('SERVICE_FQDN') || str($this->env->key)->startsWith('SERVICE_URL')) { if (str($this->env->key)->startsWith('SERVICE_FQDN') || str($this->env->key)->startsWith('SERVICE_URL')) {
// $this->isDisabled = true; $this->isDisabled = true;
// } }
if ($this->env->is_shown_once) { if ($this->env->is_shown_once) {
$this->isLocked = true; $this->isLocked = true;
} }

View File

@@ -69,13 +69,14 @@ class Configuration extends Component
} }
$this->validate(); $this->validate();
if ($this->settings->is_dns_validation_enabled) { if ($this->settings->is_dns_validation_enabled && $this->settings->fqdn) {
ray('asdf');
if (!validate_dns_entry($this->settings->fqdn, $this->server)) { if (!validate_dns_entry($this->settings->fqdn, $this->server)) {
$this->dispatch('error', "Validating DNS ({$this->settings->fqdn}) failed.<br><br>Make sure you have added the DNS records correctly.<br><br>Check this <a target='_blank' class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/dns-configuration'>documentation</a> for further help."); $this->dispatch('error', "Validating DNS ({$this->settings->fqdn}) failed.<br><br>Make sure you have added the DNS records correctly.<br><br>Check this <a target='_blank' class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/dns-configuration'>documentation</a> for further help.");
$error_show = true; $error_show = true;
} }
} }
check_domain_usage(domain: $this->settings->fqdn); if ($this->settings->fqdn) check_domain_usage(domain: $this->settings->fqdn);
$this->settings->custom_dns_servers = str($this->settings->custom_dns_servers)->replaceEnd(',', '')->trim(); $this->settings->custom_dns_servers = str($this->settings->custom_dns_servers)->replaceEnd(',', '')->trim();
$this->settings->custom_dns_servers = str($this->settings->custom_dns_servers)->trim()->explode(',')->map(function ($dns) { $this->settings->custom_dns_servers = str($this->settings->custom_dns_servers)->trim()->explode(',')->map(function ($dns) {
return str($dns)->trim()->lower(); return str($dns)->trim()->lower();

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Livewire\Tags;
use App\Models\ApplicationDeploymentQueue;
use Livewire\Component;
class Deployments extends Component
{
public $deployments_per_tag_per_server = [];
public $resource_ids = [];
public function render()
{
return view('livewire.tags.deployments');
}
public function get_deployments()
{
try {
$this->deployments_per_tag_per_server = ApplicationDeploymentQueue::whereIn("status", ["in_progress", "queued"])->whereIn('application_id', $this->resource_ids)->get([
"id",
"application_id",
"application_name",
"deployment_url",
"pull_request_id",
"server_name",
"server_id",
"status"
])->sortBy('id')->groupBy('server_name')->toArray();
} catch (\Exception $e) {
return handleError($e, $this);
}
}
}

View File

@@ -20,32 +20,22 @@ class Index extends Component
public $webhook = null; public $webhook = null;
public $deployments_per_tag_per_server = []; public $deployments_per_tag_per_server = [];
public function updatedTag() public function tag_updated()
{ {
if ($this->tag == "") {
return;
}
$tag = $this->tags->where('name', $this->tag)->first(); $tag = $this->tags->where('name', $this->tag)->first();
if (!$tag) {
$this->dispatch('error', "Tag ({$this->tag}) not found.");
$this->tag = "";
return;
}
$this->webhook = generatTagDeployWebhook($tag->name); $this->webhook = generatTagDeployWebhook($tag->name);
$this->applications = $tag->applications()->get(); $this->applications = $tag->applications()->get();
$this->services = $tag->services()->get(); $this->services = $tag->services()->get();
$this->get_deployments();
}
public function get_deployments()
{
try {
$resource_ids = $this->applications->pluck('id');
$this->deployments_per_tag_per_server = ApplicationDeploymentQueue::whereIn("status", ["in_progress", "queued"])->whereIn('application_id', $resource_ids)->get([
"id",
"application_id",
"application_name",
"deployment_url",
"pull_request_id",
"server_name",
"server_id",
"status"
])->sortBy('id')->groupBy('server_name')->toArray();
} catch (\Exception $e) {
return handleError($e, $this);
}
} }
public function redeploy_all() public function redeploy_all()
{ {
try { try {
@@ -67,7 +57,7 @@ class Index extends Component
{ {
$this->tags = Tag::ownedByCurrentTeam()->get()->unique('name')->sortBy('name'); $this->tags = Tag::ownedByCurrentTeam()->get()->unique('name')->sortBy('name');
if ($this->tag) { if ($this->tag) {
$this->updatedTag(); $this->tag_updated();
} }
} }
public function render() public function render()

View File

@@ -579,9 +579,9 @@ class Application extends BaseModel
['repository' => $customRepository, 'port' => $customPort] = $this->customRepository(); ['repository' => $customRepository, 'port' => $customPort] = $this->customRepository();
$baseDir = $custom_base_dir ?? $this->generateBaseDir($deployment_uuid); $baseDir = $custom_base_dir ?? $this->generateBaseDir($deployment_uuid);
$commands = collect([]); $commands = collect([]);
$git_clone_command = "git clone -b {$this->git_branch}"; $git_clone_command = "git clone -b \"{$this->git_branch}\"";
if ($only_checkout) { if ($only_checkout) {
$git_clone_command = "git clone --no-checkout -b {$this->git_branch}"; $git_clone_command = "git clone --no-checkout -b \"{$this->git_branch}\"";
} }
if ($pull_request_id !== 0) { if ($pull_request_id !== 0) {
$pr_branch_name = "pr-{$pull_request_id}-coolify"; $pr_branch_name = "pr-{$pull_request_id}-coolify";

View File

@@ -860,6 +860,9 @@ $schema://$host {
} }
public function isNonRoot() public function isNonRoot()
{ {
if ($this->user instanceof Stringable) {
return $this->user->value() !== 'root';
}
return $this->user !== 'root'; return $this->user !== 'root';
} }
} }

View File

@@ -207,4 +207,7 @@ class StandaloneClickhouse extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return $this->clickhouse_db;
}
} }

View File

@@ -207,4 +207,7 @@ class StandaloneDragonfly extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return '0';
}
} }

View File

@@ -208,5 +208,7 @@ class StandaloneKeydb extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return '0';
}
} }

View File

@@ -208,4 +208,7 @@ class StandaloneMariadb extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return $this->mariadb_database;
}
} }

View File

@@ -223,4 +223,7 @@ class StandaloneMongodb extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return $this->mongo_db;
}
} }

View File

@@ -209,4 +209,7 @@ class StandaloneMysql extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return $this->mysql_database;
}
} }

View File

@@ -208,4 +208,7 @@ class StandalonePostgresql extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return $this->postgres_db;
}
} }

View File

@@ -204,4 +204,7 @@ class StandaloneRedis extends BaseModel
{ {
return $this->morphMany(ScheduledDatabaseBackup::class, 'database'); return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
} }
public function database_name() {
return '0';
}
} }

View File

@@ -17,11 +17,13 @@ class BackupFailed extends Notification implements ShouldQueue
public $tries = 1; public $tries = 1;
public string $name; public string $name;
public string $database_name;
public string $frequency; public string $frequency;
public function __construct(ScheduledDatabaseBackup $backup, public $database, public $output) public function __construct(ScheduledDatabaseBackup $backup, public $database, public $output)
{ {
$this->name = $database->name; $this->name = $database->name;
$this->database_name = $database->database_name();
$this->frequency = $backup->frequency; $this->frequency = $backup->frequency;
} }
@@ -36,6 +38,7 @@ class BackupFailed extends Notification implements ShouldQueue
$mail->subject("Coolify: [ACTION REQUIRED] Backup FAILED for {$this->database->name}"); $mail->subject("Coolify: [ACTION REQUIRED] Backup FAILED for {$this->database->name}");
$mail->view('emails.backup-failed', [ $mail->view('emails.backup-failed', [
'name' => $this->name, 'name' => $this->name,
'database_name' => $this->database_name,
'frequency' => $this->frequency, 'frequency' => $this->frequency,
'output' => $this->output, 'output' => $this->output,
]); ]);
@@ -44,11 +47,11 @@ class BackupFailed extends Notification implements ShouldQueue
public function toDiscord(): string public function toDiscord(): string
{ {
return "Coolify: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}"; return "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
} }
public function toTelegram(): array public function toTelegram(): array
{ {
$message = "Coolify: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}"; $message = "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
return [ return [
"message" => $message, "message" => $message,
]; ];

View File

@@ -14,11 +14,13 @@ class BackupSuccess extends Notification implements ShouldQueue
public $tries = 1; public $tries = 1;
public string $name; public string $name;
public string $database_name;
public string $frequency; public string $frequency;
public function __construct(ScheduledDatabaseBackup $backup, public $database) public function __construct(ScheduledDatabaseBackup $backup, public $database)
{ {
$this->name = $database->name; $this->name = $database->name;
$this->database_name = $database->database_name();
$this->frequency = $backup->frequency; $this->frequency = $backup->frequency;
} }
@@ -33,6 +35,7 @@ class BackupSuccess extends Notification implements ShouldQueue
$mail->subject("Coolify: Backup successfully done for {$this->database->name}"); $mail->subject("Coolify: Backup successfully done for {$this->database->name}");
$mail->view('emails.backup-success', [ $mail->view('emails.backup-success', [
'name' => $this->name, 'name' => $this->name,
'database_name' => $this->database_name,
'frequency' => $this->frequency, 'frequency' => $this->frequency,
]); ]);
return $mail; return $mail;
@@ -40,11 +43,11 @@ class BackupSuccess extends Notification implements ShouldQueue
public function toDiscord(): string public function toDiscord(): string
{ {
return "Coolify: Database backup for {$this->name} with frequency of {$this->frequency} was successful."; return "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was successful.";
} }
public function toTelegram(): array public function toTelegram(): array
{ {
$message = "Coolify: Database backup for {$this->name} with frequency of {$this->frequency} was successful."; $message = "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was successful.";
return [ return [
"message" => $message, "message" => $message,
]; ];

View File

@@ -0,0 +1,38 @@
<?php
namespace App\View\Components\Forms;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Str;
use Illuminate\View\Component;
use Visus\Cuid2\Cuid2;
class Datalist extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public ?string $id = null,
public ?string $name = null,
public ?string $label = null,
public ?string $helper = null,
public bool $required = false,
public string $defaultClass = "input"
) {
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
if (is_null($this->id)) $this->id = new Cuid2(7);
if (is_null($this->name)) $this->name = $this->id;
$this->label = Str::title($this->label);
return view('components.forms.datalist');
}
}

View File

@@ -29,11 +29,13 @@ use DanHarrin\LivewireRateLimiting\Exceptions\TooManyRequestsException;
use Illuminate\Database\UniqueConstraintViolationException; use Illuminate\Database\UniqueConstraintViolationException;
use Illuminate\Mail\Message; use Illuminate\Mail\Message;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Process\Pool;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Process;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str; use Illuminate\Support\Str;
@@ -1266,6 +1268,11 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
$serviceLabels->push("$removedLabelName=$removedLabel"); $serviceLabels->push("$removedLabelName=$removedLabel");
} }
} }
if ($serviceLabels->count() > 0) {
$serviceLabels = $serviceLabels->map(function ($value, $key) {
return escapeDollarSign($value);
});
}
$baseName = generateApplicationContainerName($resource, $pull_request_id); $baseName = generateApplicationContainerName($resource, $pull_request_id);
$containerName = "$serviceName-$baseName"; $containerName = "$serviceName-$baseName";
if (count($serviceVolumes) > 0) { if (count($serviceVolumes) > 0) {
@@ -1424,6 +1431,14 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
foreach ($definedNetwork as $key => $network) { foreach ($definedNetwork as $key => $network) {
$networks->put($network, null); $networks->put($network, null);
} }
if (data_get($resource, 'settings.connect_to_docker_network')) {
$network = $resource->destination->network;
$networks->put($network, null);
$topLevelNetworks->put($network, [
'name' => $network,
'external' => true
]);
}
data_set($service, 'networks', $networks->toArray()); data_set($service, 'networks', $networks->toArray());
// Get variables from the service // Get variables from the service
foreach ($serviceVariables as $variableName => $variable) { foreach ($serviceVariables as $variableName => $variable) {
@@ -1585,7 +1600,6 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
$fqdns = data_get($domains, "$serviceName.domain"); $fqdns = data_get($domains, "$serviceName.domain");
if ($fqdns) { if ($fqdns) {
$fqdns = str($fqdns)->explode(','); $fqdns = str($fqdns)->explode(',');
$uuid = new Cuid2(7);
if ($pull_request_id !== 0) { if ($pull_request_id !== 0) {
$fqdns = $fqdns->map(function ($fqdn) use ($pull_request_id, $resource) { $fqdns = $fqdns->map(function ($fqdn) use ($pull_request_id, $resource) {
$preview = ApplicationPreview::findPreviewByApplicationAndPullId($resource->id, $pull_request_id); $preview = ApplicationPreview::findPreviewByApplicationAndPullId($resource->id, $pull_request_id);
@@ -1604,13 +1618,13 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
}); });
} }
$serviceLabels = $serviceLabels->merge(fqdnLabelsForTraefik( $serviceLabels = $serviceLabels->merge(fqdnLabelsForTraefik(
uuid: $uuid, uuid: $resource->uuid,
domains: $fqdns, domains: $fqdns,
serviceLabels: $serviceLabels serviceLabels: $serviceLabels
)); ));
$serviceLabels = $serviceLabels->merge(fqdnLabelsForCaddy( $serviceLabels = $serviceLabels->merge(fqdnLabelsForCaddy(
network: $resource->destination->network, network: $resource->destination->network,
uuid: $uuid, uuid: $resource->uuid,
domains: $fqdns, domains: $fqdns,
serviceLabels: $serviceLabels serviceLabels: $serviceLabels
)); ));
@@ -2004,3 +2018,37 @@ function parseLineForSudo(string $command, Server $server): string
return $command; return $command;
} }
function get_public_ips()
{
try {
echo "Refreshing public ips!\n";
$settings = InstanceSettings::get();
[$first, $second] = Process::concurrently(function (Pool $pool) {
$pool->path(__DIR__)->command('curl -4s https://ifconfig.io');
$pool->path(__DIR__)->command('curl -6s https://ifconfig.io');
});
$ipv4 = $first->output();
if ($ipv4) {
$ipv4 = trim($ipv4);
$validate_ipv4 = filter_var($ipv4, FILTER_VALIDATE_IP);
if ($validate_ipv4 == false) {
echo "Invalid ipv4: $ipv4\n";
return;
}
$settings->update(['public_ipv4' => $ipv4]);
}
$ipv6 = $second->output();
if ($ipv6) {
$ipv6 = trim($ipv6);
$validate_ipv6 = filter_var($ipv6, FILTER_VALIDATE_IP);
if ($validate_ipv6 == false) {
echo "Invalid ipv6: $ipv6\n";
return;
}
$settings->update(['public_ipv6' => $ipv6]);
}
} catch (\Throwable $e) {
echo "Error: {$e->getMessage()}\n";
}
}

View File

@@ -7,7 +7,7 @@ return [
// The release version of your application // The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.261', 'release' => '4.0.0-beta.267',
// When left empty or `null` the Laravel environment will be used // When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'), 'environment' => config('app.env'),

View File

@@ -1,3 +1,3 @@
<?php <?php
return '4.0.0-beta.261'; return '4.0.0-beta.267';

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('application_settings', function (Blueprint $table) {
$table->boolean('connect_to_docker_network')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('application_settings', function (Blueprint $table) {
$table->dropColumn('connect_to_docker_network');
});
}
};

View File

@@ -177,27 +177,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
} }
} }
try { get_public_ips();
$settings = InstanceSettings::get();
if (is_null($settings->public_ipv4)) {
$ipv4 = Process::run('curl -4s https://ifconfig.io')->output();
if ($ipv4) {
$ipv4 = trim($ipv4);
$ipv4 = filter_var($ipv4, FILTER_VALIDATE_IP);
$settings->update(['public_ipv4' => $ipv4]);
}
}
if (is_null($settings->public_ipv6)) {
$ipv6 = Process::run('curl -6s https://ifconfig.io')->output();
if ($ipv6) {
$ipv6 = trim($ipv6);
$ipv6 = filter_var($ipv6, FILTER_VALIDATE_IP);
$settings->update(['public_ipv6' => $ipv6]);
}
}
} catch (\Throwable $e) {
echo "Error: {$e->getMessage()}\n";
}
$oauth_settings_seeder = new OauthSettingSeeder(); $oauth_settings_seeder = new OauthSettingSeeder();
$oauth_settings_seeder->run(); $oauth_settings_seeder->run();

View File

@@ -133,6 +133,11 @@ tr td:first-child {
@apply inline-block w-3 h-3 text-xs font-bold leading-none border rounded-full border-neutral-200 dark:border-black; @apply inline-block w-3 h-3 text-xs font-bold leading-none border rounded-full border-neutral-200 dark:border-black;
} }
.badge-absolute {
@apply absolute top-0 right-0 w-2 h-2 border-none rounded-t-none rounded-r-none;
}
.badge-success { .badge-success {
@apply bg-success; @apply bg-success;
} }
@@ -195,7 +200,7 @@ tr td:first-child {
} }
.box { .box {
@apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 bg-white border text-black dark:text-white hover:text-black border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:no-underline; @apply relative flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 bg-white border text-black dark:text-white hover:text-black border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:no-underline;
} }
.box-boarding { .box-boarding {
@apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black ; @apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black ;

View File

@@ -0,0 +1,44 @@
<div class="w-full">
<label>
@if ($label)
{{ $label }}
@if ($required)
<x-highlighted text="*" />
@endif
@if ($helper)
<x-helper :helper="$helper" />
@endif
@endif
<input list={{ $id }} {{ $attributes->merge(['class' => $defaultClass]) }} @required($required)
wire:dirty.class.remove='dark:text-white' wire:dirty.class="text-black bg-warning" wire:loading.attr="disabled"
name={{ $id }}
@if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model={{ $id }} @endif
@if ($attributes->whereStartsWith('onUpdate')->first()) wire:change={{ $attributes->whereStartsWith('onUpdate')->first() }} wire:keydown.enter={{ $attributes->whereStartsWith('onUpdate')->first() }} wire:blur={{ $attributes->whereStartsWith('onUpdate')->first() }} @else wire:change={{ $id }} wire:blur={{ $id }} wire:keydown.enter={{ $id }} @endif>
<datalist id={{ $id }}>
{{ $slot }}
</datalist>
</label>
@error($id)
<label class="label">
<span class="text-red-500 label-text-alt">{{ $message }}</span>
</label>
@enderror
{{-- <script>
const input = document.querySelector(`input[list={{ $id }}]`);
input.addEventListener('focus', function(e) {
const input = e.target.value;
const datalist = document.getElementById('{{ $id }}');
if (datalist.options) {
for (let option of datalist.options) {
// change background color to red on all options
option.style.display = "none";
if (option.value.includes(input)) {
option.style.display = "block";
}
}
}
});
</script> --}}
</div>

View File

@@ -1,5 +1,5 @@
<x-emails.layout> <x-emails.layout>
Database backup for {{ $name }} with frequency of {{ $frequency }} was FAILED. Database backup for {{ $name }} (db:{{$database_name}}) with frequency of {{ $frequency }} was FAILED.
### Reason ### Reason

View File

@@ -1,3 +1,3 @@
<x-emails.layout> <x-emails.layout>
Database backup for {{ $name }} with frequency of {{ $frequency }} was successful. Database backup for {{ $name }} (db:{{ $database_name }}) with frequency of {{ $frequency }} was successful.
</x-emails.layout> </x-emails.layout>

View File

@@ -1,11 +1,13 @@
@php use App\Enums\ProxyTypes; @endphp @php use App\Enums\ProxyTypes; @endphp
<section class="flex flex-col h-full lg:items-center lg:justify-center"> <section class="flex flex-col h-full lg:items-center lg:justify-center">
<div class="flex flex-col items-center justify-center p-10 mx-2 mt-10 bg-white border rounded-lg shadow lg:p-20 dark:bg-transparent dark:border-none max-w-7xl "> <div
class="flex flex-col items-center justify-center p-10 mx-2 mt-10 bg-white border rounded-lg shadow lg:p-20 dark:bg-transparent dark:border-none max-w-7xl ">
@if ($currentState === 'welcome') @if ($currentState === 'welcome')
<h1 class="text-3xl font-bold lg:text-5xl">Welcome to Coolify</h1> <h1 class="text-3xl font-bold lg:text-5xl">Welcome to Coolify</h1>
<div class="py-6 text-center lg:text-xl">Let me help you set up the basics.</div> <div class="py-6 text-center lg:text-xl">Let me help you set up the basics.</div>
<div class="flex justify-center "> <div class="flex justify-center ">
<x-forms.button class="justify-center w-64 box-boarding" wire:click="$set('currentState','explanation')">Get <x-forms.button class="justify-center w-64 box-boarding"
wire:click="$set('currentState','explanation')">Get
Started Started
</x-forms.button> </x-forms.button>
</div> </div>
@@ -60,7 +62,8 @@
server. server.
<br /> <br />
Check this <a target="_blank" class="underline" Check this <a target="_blank" class="underline"
href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a> for further help. href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a> for further
help.
<x-forms.input readonly id="serverPublicKey"></x-forms.input> <x-forms.input readonly id="serverPublicKey"></x-forms.input>
<x-forms.button class="lg:w-64 box-boarding" wire:target="setServerType('localhost')" <x-forms.button class="lg:w-64 box-boarding" wire:target="setServerType('localhost')"
wire:click="setServerType('localhost')">Check again wire:click="setServerType('localhost')">Check again
@@ -120,7 +123,8 @@
<x-slot:actions> <x-slot:actions>
<div class="flex flex-col gap-4"> <div class="flex flex-col gap-4">
<div> <div>
<x-forms.button class="justify-center w-64 box-boarding" wire:click="createNewServer">No (create <x-forms.button class="justify-center w-64 box-boarding" wire:click="createNewServer">No
(create
one one
for for
me) me)
@@ -146,7 +150,8 @@
'root' or skip the boarding process and add a new private key manually to Coolify and to the 'root' or skip the boarding process and add a new private key manually to Coolify and to the
server. server.
<x-forms.input readonly id="serverPublicKey"></x-forms.input> <x-forms.input readonly id="serverPublicKey"></x-forms.input>
<x-forms.button class="w-64 box-boarding" wire:target="validateServer" wire:click="validateServer">Check <x-forms.button class="w-64 box-boarding" wire:target="validateServer"
wire:click="validateServer">Check
again again
</x-forms.button> </x-forms.button>
@endif @endif
@@ -207,9 +212,14 @@
<x-forms.input required placeholder="127.0.0.1" label="IP Address" id="remoteServerHost" /> <x-forms.input required placeholder="127.0.0.1" label="IP Address" id="remoteServerHost" />
<x-forms.input required placeholder="Port number of your server. Default is 22." <x-forms.input required placeholder="Port number of your server. Default is 22."
label="Port" id="remoteServerPort" /> label="Port" id="remoteServerPort" />
<x-forms.input required readonly <div class="w-full">
placeholder="Username to connect to your server. Default is root." label="Username" <x-forms.input required placeholder="User to connect to your server. Default is root."
id="remoteServerUser" /> label="User" id="remoteServerUser" />
<div class="text-xs dark:text-warning text-coollabs ">Non-root user is experimental: <a
class="font-bold underline" target="_blank"
href="https://coolify.io/docs/knowledge-base/server/non-root-user">docs</a>.
</div>
</div>
</div> </div>
<div class="lg:w-64"> <div class="lg:w-64">
<x-forms.checkbox <x-forms.checkbox

View File

@@ -5,14 +5,12 @@
<x-forms.input id="name" label="Name" required /> <x-forms.input id="name" label="Name" required />
<x-forms.input id="network" label="Network" required /> <x-forms.input id="network" label="Network" required />
</div> </div>
@if ($server_id) <x-forms.select id="server_id" label="Select a server" required wire:change="generate_name">
<x-forms.select id="server_id" label="Select a server" required wire:change="generate_name"> <option disabled>Select a server</option>
<option disabled>Select a server</option> @foreach ($servers as $server)
@foreach ($servers as $server) <option value="{{ $server->id }}">{{ $server->name }}</option>
<option value="{{ $server->id }}">{{ $server->name }}</option> @endforeach
@endforeach </x-forms.select>
</x-forms.select>
@endif
<x-forms.button type="submit"> <x-forms.button type="submit">
Continue Continue
</x-forms.button> </x-forms.button>

View File

@@ -25,8 +25,21 @@
instantSave id="is_gzip_enabled" /> instantSave id="is_gzip_enabled" />
<x-forms.checkbox helper="Strip Prefix is used to remove prefixes from paths. Like /api/ to /api." <x-forms.checkbox helper="Strip Prefix is used to remove prefixes from paths. Like /api/ to /api."
instantSave id="is_stripprefix_enabled" label="Strip Prefixes" /> instantSave id="is_stripprefix_enabled" label="Strip Prefixes" />
<h3>Logs</h3> @if ($application->build_pack === 'dockercompose')
<x-forms.checkbox instantSave id="application.settings.is_raw_compose_deployment_enabled"
label="Raw Compose Deployment"
helper="WARNING: Advanced use cases only. Your docker compose file will be deployed as-is. Nothing is modified by Coolify. You need to configure the proxy parts. More info in the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/compose#raw-docker-compose-deployment'>documentation.</a>" />
@endif
@if ($application->build_pack === 'dockercompose')
<h3>Network</h3>
<div class="w-96">
<x-forms.checkbox instantSave id="application.settings.connect_to_docker_network"
label="Connect To Predefined Network"
helper="By default, you do not reach the Coolify defined networks.<br>Starting a docker compose based resource will have an internal network. <br>If you connect to a Coolify defined network, you maybe need to use different internal DNS names to connect to a resource.<br><br>For more information, check <a class='underline dark:text-white' target='_blank' href='https://coolify.io/docs/knowledge-base/docker/compose#connect-to-predefined-networks'>this</a>." />
</div>
@endif
@if (!$application->settings->is_raw_compose_deployment_enabled) @if (!$application->settings->is_raw_compose_deployment_enabled)
<h3>Logs</h3>
<x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings."
instantSave id="application.settings.is_log_drain_enabled" label="Drain Logs" /> instantSave id="application.settings.is_log_drain_enabled" label="Drain Logs" />
@endif @endif

View File

@@ -87,7 +87,7 @@
@foreach (decode_remote_command_output($application_deployment_queue) as $line) @foreach (decode_remote_command_output($application_deployment_queue) as $line)
<span @class([ <span @class([
'dark:text-warning whitespace-pre-line' => $line['hidden'], 'dark:text-warning whitespace-pre-line' => $line['hidden'],
'text-red-500 font-bold' => $line['type'] == 'stderr', 'text-red-500 font-bold whitespace-pre-line' => $line['type'] == 'stderr',
])>[{{ $line['timestamp'] }}] @if ($line['hidden']) ])>[{{ $line['timestamp'] }}] @if ($line['hidden'])
<br><br>[COMMAND] {{ $line['command'] }}<br>[OUTPUT] <br><br>[COMMAND] {{ $line['command'] }}<br>[OUTPUT]
@endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://')) @endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://'))

View File

@@ -4,7 +4,7 @@
<h2>General</h2> <h2>General</h2>
<x-forms.button type="submit"> <x-forms.button type="submit">
Save Save
</x-forms.button> </x-forms.button>
</div> </div>
<div>General configuration for your application.</div> <div>General configuration for your application.</div>
<div class="flex flex-col gap-2 py-4"> <div class="flex flex-col gap-2 py-4">
@@ -38,13 +38,8 @@
</div> </div>
@endif @endif
@if ($application->build_pack === 'dockercompose') @if ($application->build_pack === 'dockercompose')
<div class="w-96">
<x-forms.checkbox instantSave id="application.settings.is_raw_compose_deployment_enabled"
label="Raw Compose Deployment"
helper="WARNING: Advanced use cases only. Your docker compose file will be deployed as-is. Nothing is modified by Coolify. You need to configure the proxy parts. More info in the <a href='https://coolify.io/docs/knowledge-base/docker/compose#raw-docker-compose-deployment'>documentation.</a>" />
</div>
@if (count($parsedServices) > 0 && !$application->settings->is_raw_compose_deployment_enabled) @if (count($parsedServices) > 0 && !$application->settings->is_raw_compose_deployment_enabled)
<h3>Domains</h3> <h3 class="pt-6">Domains</h3>
@foreach (data_get($parsedServices, 'services') as $serviceName => $service) @foreach (data_get($parsedServices, 'services') as $serviceName => $service)
@if (!isDatabaseImage(data_get($service, 'image'))) @if (!isDatabaseImage(data_get($service, 'image')))
<div class="flex items-end gap-2"> <div class="flex items-end gap-2">

View File

@@ -27,7 +27,7 @@
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<div class="flex gap-2"> <div class="flex gap-2">
<x-forms.input placeholder="coollabsio/coolify-example" id="application.git_repository" <x-forms.input placeholder="coollabsio/coolify-example" id="application.git_repository" readonly
label="Repository" /> label="Repository" />
<x-forms.input placeholder="main" id="application.git_branch" label="Branch" /> <x-forms.input placeholder="main" id="application.git_branch" label="Branch" />
</div> </div>
@@ -36,10 +36,10 @@
label="Commit SHA" /> label="Commit SHA" />
</div> </div>
</div> </div>
@isset($application->private_key_id) @if(data_get($application, 'private_key_id'))
<h3 class="pt-4">Deploy Key</h3> <h3 class="pt-4">Deploy Key</h3>
<div class="py-2 pt-4">Currently attached Private Key: <span <div class="py-2 pt-4">Currently attached Private Key: <span
class="dark:text-warning">{{ $application->private_key->name }}</span> class="dark:text-warning">{{ data_get($application, 'private_key.name') }}</span>
</div> </div>
<h4 class="py-2 ">Select another Private Key</h4> <h4 class="py-2 ">Select another Private Key</h4>
@@ -49,6 +49,6 @@
</x-forms.button> </x-forms.button>
@endforeach @endforeach
</div> </div>
@endisset @endif
</form> </form>
</div> </div>

View File

@@ -10,7 +10,7 @@
@endforeach @endforeach
@endif @endif
</x-forms.select> </x-forms.select>
<x-forms.button type="submit" @click="slideOverOpen=false"> <x-forms.button type="submit" @click="modalOpen=false">
Save Save
</x-forms.button> </x-forms.button>
</form> </form>

View File

@@ -1,7 +1,7 @@
<div x-data="{ error: $wire.entangle('error'), filesize: $wire.entangle('filesize'), filename: $wire.entangle('filename'), isUploading: $wire.entangle('isUploading'), progress: $wire.entangle('progress') }"> <div x-data="{ error: $wire.entangle('error'), filesize: $wire.entangle('filesize'), filename: $wire.entangle('filename'), isUploading: $wire.entangle('isUploading'), progress: $wire.entangle('progress') }">
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/dropzone.min.js" <script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/dropzone.min.js"
integrity="sha512-U2WE1ktpMTuRBPoCFDzomoIorbOyUv0sP8B+INA3EzNAhehbzED1rOJg6bCqPf/Tuposxb5ja/MAUnC8THSbLQ==" integrity="sha512-U2WE1ktpMTuRBPoCFDzomoIorbOyUv0sP8B+INA3EzNAhehbzED1rOJg6bCqPf/Tuposxb5ja/MAUnC8THSbLQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" defer async></script> crossorigin="anonymous" referrerpolicy="no-referrer"></script>
@script @script
<script> <script>
Dropzone.options.myDropzone = { Dropzone.options.myDropzone = {

View File

@@ -576,9 +576,9 @@
@empty @empty
<div class="w-96">No service found. Please try to reload the list!</div> <div class="w-96">No service found. Please try to reload the list!</div>
@endforelse @endforelse
</div>
@endif @endif
</div> </div>
@endif @endif
@if ($current_step === 'servers') @if ($current_step === 'servers')
<h2>Select a server</h2> <h2>Select a server</h2>
@@ -645,4 +645,3 @@
</form> </form>
@endif @endif
</div> </div>
</div>

View File

@@ -50,321 +50,311 @@
<template x-for="item in filteredApplications" :key="item.id"> <template x-for="item in filteredApplications" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col w-full px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 box-title" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate box-description" x-text="item.description"></div> <div class="max-w-full px-4 truncate box-description" x-text="item.description"></div>
<div class="max-w-full truncate box-description" x-text="item.fqdn"></div> <div class="max-w-full px-4 truncate box-description" x-text="item.fqdn"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6"> <div class="flex flex-wrap gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredPostgresqls" :key="item.id"> <template x-for="item in filteredPostgresqls" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold box-title" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate box-description" x-text="item.description"></div> <div class="max-w-full px-4 truncate box-description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredRedis" :key="item.id"> <template x-for="item in filteredRedis" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredMongodbs" :key="item.id"> <template x-for="item in filteredMongodbs" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredMysqls" :key="item.id"> <template x-for="item in filteredMysqls" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredMariadbs" :key="item.id"> <template x-for="item in filteredMariadbs" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredKeydbs" :key="item.id"> <template x-for="item in filteredKeydbs" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredDragonflies" :key="item.id"> <template x-for="item in filteredDragonflies" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredClickhouses" :key="item.id"> <template x-for="item in filteredClickhouses" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>
<template x-for="item in filteredServices" :key="item.id"> <template x-for="item in filteredServices" :key="item.id">
<span> <span>
<a class="h-24 box group" :href="item.hrefLink"> <a class="h-24 box group" :href="item.hrefLink">
<div class="flex flex-col px-4 mx-2"> <div class="flex flex-col w-full">
<div class="flex gap-2"> <div class="flex gap-2 px-4">
<div class="pb-2 font-bold dark:text-white" x-text="item.name"></div> <div class="pb-2 truncate box-title" x-text="item.name"></div>
<div class="flex-1"></div>
<template x-if="item.status.startsWith('running')"> <template x-if="item.status.startsWith('running')">
<div title="running" class="mt-1 bg-success badge "></div> <div title="running" class="bg-success badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('exited')"> <template x-if="item.status.startsWith('exited')">
<div title="exited" class="mt-1 bg-error badge "></div> <div title="exited" class="bg-error badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('restarting')"> <template x-if="item.status.startsWith('restarting')">
<div title="restarting" class="mt-1 bg-warningbadge "></div> <div title="restarting" class="bg-warning badge badge-absolute"></div>
</template> </template>
<template x-if="item.status.startsWith('degraded')"> <template x-if="item.status.startsWith('degraded')">
<div title="degraded" class="mt-1 bg-warning badge "></div> <div title="degraded" class="bg-warning badge badge-absolute"></div>
</template> </template>
</div> </div>
<div class="max-w-full truncate description" x-text="item.description"></div> <div class="max-w-full px-4 truncate description" x-text="item.description"></div>
</div> </div>
</a> </a>
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6"> <div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
<template x-for="tag in item.tags"> <template x-for="tag in item.tags">
<div class="tag" <div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
@click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
</template> </template>
<div class="add-tag" <div class="add-tag" @click.prevent="goto(item)">Add tag</div>
@click.prevent="goto(item)">Add tag</div>
</div> </div>
</span> </span>
</template> </template>

View File

@@ -2,11 +2,13 @@
<form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row"> <form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
@if ($isReadOnly) @if ($isReadOnly)
@if ($isFirst) @if ($isFirst)
<x-forms.input id="storage.name" label="Volume Name" required readonly /> <x-forms.input id="storage.name" label="Volume Name" required
<x-forms.input id="storage.host_path" label="Source Path (on host)" readonly /> helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />
<x-forms.input id="storage.host_path" label="Source Path (on host)" helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
<x-forms.input id="storage.mount_path" label="Destination Path (in container)" required readonly /> <x-forms.input id="storage.mount_path" label="Destination Path (in container)" required readonly />
@else @else
<x-forms.input id="storage.name" required readonly /> <x-forms.input id="storage.name" required readonly
helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />
<x-forms.input id="storage.host_path" readonly /> <x-forms.input id="storage.host_path" readonly />
<x-forms.input id="storage.mount_path" required readonly /> <x-forms.input id="storage.mount_path" required readonly />
@endif @endif
@@ -25,7 +27,8 @@
Update Update
</x-forms.button> </x-forms.button>
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation isErrorButton buttonTitle="Delete">
This storage will be deleted <span class="font-bold dark:text-warning">{{ $storage->name }}</span>. It This storage will be deleted <span class="font-bold dark:text-warning">{{ $storage->name }}</span>.
It
is is
not not
reversible. <br>Please think again. reversible. <br>Please think again.

View File

@@ -1,6 +1,6 @@
<div> <div>
<h2>Tags</h2> <h2>Tags</h2>
<div class="flex gap-2 pt-4"> <div class="flex flex-wrap gap-2 pt-4">
@if (data_get($this->resource, 'tags')) @if (data_get($this->resource, 'tags'))
@forelse (data_get($this->resource,'tags') as $tagId => $tag) @forelse (data_get($this->resource,'tags') as $tagId => $tag)
<div <div
@@ -29,7 +29,7 @@
@if (count($tags) > 0) @if (count($tags) > 0)
<h3 class="pt-4">Exisiting Tags</h3> <h3 class="pt-4">Exisiting Tags</h3>
<div>Click to add quickly</div> <div>Click to add quickly</div>
<div class="flex gap-2 pt-4"> <div class="flex flex-wrap gap-2 pt-4">
@foreach ($tags as $tag) @foreach ($tags as $tag)
<x-forms.button wire:click="addTag('{{ $tag->id }}','{{ $tag->name }}')"> <x-forms.button wire:click="addTag('{{ $tag->id }}','{{ $tag->name }}')">
{{ $tag->name }}</x-forms.button> {{ $tag->name }}</x-forms.button>

View File

@@ -13,9 +13,15 @@
</x-forms.button> </x-forms.button>
</a> </a>
@endif @endif
<x-modal-confirmation isErrorButton buttonTitle="Delete"> @if ($applications->count() > 0)
This source will be deleted. It is not reversible. <br>Please think again. <x-modal-confirmation disabled isErrorButton buttonTitle="Delete">
</x-modal-confirmation> This source will be deleted. It is not reversible. <br>Please think again.
</x-modal-confirmation>
@else
<x-modal-confirmation isErrorButton buttonTitle="Delete">
This source will be deleted. It is not reversible. <br>Please think again.
</x-modal-confirmation>
@endif
</div> </div>
</div> </div>
<div class="subtitle">Your Private GitHub App for private repositories.</div> <div class="subtitle">Your Private GitHub App for private repositories.</div>

View File

@@ -0,0 +1,28 @@
<div wire:poll.1000ms="get_deployments" class="grid grid-cols-1">
@forelse ($deployments_per_tag_per_server as $server_name => $deployments)
<h4 class="py-4">{{ $server_name }}</h4>
<div class="grid grid-cols-1 gap-2 lg:grid-cols-3">
@foreach ($deployments as $deployment)
<div @class([
'box-without-bg dark:bg-coolgray-100 bg-white gap-2 cursor-pointer group border-l-2 border-dotted',
'dark:border-coolgray-300' => data_get($deployment, 'status') === 'queued',
'border-yellow-500' => data_get($deployment, 'status') === 'in_progress',
])>
<a href="{{ data_get($deployment, 'deployment_url') }}">
<div class="flex flex-col mx-6">
<div class="box-title">
{{ data_get($deployment, 'application_name') }}
</div>
<div class="box-description">
{{ str(data_get($deployment, 'status'))->headline() }}
</div>
</div>
<div class="flex-1"></div>
</a>
</div>
@endforeach
</div>
@empty
<div>No deployments running.</div>
@endforelse
</div>

View File

@@ -6,12 +6,11 @@
@if ($tags->count() === 0) @if ($tags->count() === 0)
<div>No tags yet defined yet. Go to a resource and add a tag there.</div> <div>No tags yet defined yet. Go to a resource and add a tag there.</div>
@else @else
<x-forms.select wire:model.live="tag"> <x-forms.datalist wire:model="tag" onUpdate='tag_updated'>
<option value="null" disabled selected>Select a tag</option>
@foreach ($tags as $oneTag) @foreach ($tags as $oneTag)
<option value="{{ $oneTag->name }}">{{ $oneTag->name }}</option> <option value="{{ $oneTag->name }}">{{ $oneTag->name }}</option>
@endforeach @endforeach
</x-forms.select> </x-forms.datalist>
@if ($tag) @if ($tag)
<div class="pt-5"> <div class="pt-5">
<div class="flex items-end gap-2 "> <div class="flex items-end gap-2 ">
@@ -51,34 +50,7 @@
<x-loading /> <x-loading />
@endif @endif
</div> </div>
<div wire:poll.1000ms="get_deployments" class="grid grid-cols-1"> <livewire:tags.deployments :deployments_per_tag_per_server="$deployments_per_tag_per_server" :resource_ids="$applications->pluck('id')" />
@forelse ($deployments_per_tag_per_server as $server_name => $deployments)
<h4 class="py-4">{{ $server_name }}</h4>
<div class="grid grid-cols-1 gap-2 lg:grid-cols-3">
@foreach ($deployments as $deployment)
<div @class([
'box-without-bg dark:bg-coolgray-100 bg-white gap-2 cursor-pointer group border-l-2 border-dotted',
'dark:border-coolgray-300' => data_get($deployment, 'status') === 'queued',
'border-yellow-500' => data_get($deployment, 'status') === 'in_progress',
])>
<a href="{{ data_get($deployment, 'deployment_url') }}">
<div class="flex flex-col mx-6">
<div class="box-title">
{{ data_get($deployment, 'application_name') }}
</div>
<div class="box-description">
{{ str(data_get($deployment, 'status'))->headline() }}
</div>
</div>
<div class="flex-1"></div>
</a>
</div>
@endforeach
</div>
@empty
<div>No deployments running.</div>
@endforelse
</div>
</div> </div>
@endif @endif
@endif @endif

View File

@@ -8,8 +8,7 @@
<div>Available tags</div> <div>Available tags</div>
<div class="flex flex-wrap gap-2 "> <div class="flex flex-wrap gap-2 ">
@forelse ($tags as $oneTag) @forelse ($tags as $oneTag)
<a :class="{{ $tag->id == $oneTag->id }} && 'bg-coollabs hover:bg-coollabs-100'" <a :class="{{ $tag->id == $oneTag->id }} && 'bg-coollabs hover:bg-coollabs-100'" class="w-64 box"
class="w-64 box"
href="{{ route('tags.show', ['tag_name' => $oneTag->name]) }}">{{ $oneTag->name }}</a> href="{{ route('tags.show', ['tag_name' => $oneTag->name]) }}">{{ $oneTag->name }}</a>
@empty @empty
<div>No tags yet defined yet. Go to a resource and add a tag there.</div> <div>No tags yet defined yet. Go to a resource and add a tag there.</div>
@@ -28,19 +27,23 @@
</div> </div>
<div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3"> <div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3">
@foreach ($applications as $application) @foreach ($applications as $application)
<a href="{{ $application->link() }}" class="flex flex-col box group"> <a href="{{ $application->link() }}" class="box group">
<span <div class="flex flex-col">
class="font-bold dark:text-white">{{ $application->project()->name }}/{{ $application->environment->name }}</span> <div class="box-title">{{ $application->project()->name }}/{{ $application->environment->name }}
<span class="dark:text-white ">{{ $application->name }}</span> </div>
<span class="description">{{ $application->description }}</span> <div class="box-description">{{ $application->name }}</div>
<div class="box-description">{{ $application->description }}</div>
</div>
</a> </a>
@endforeach @endforeach
@foreach ($services as $service) @foreach ($services as $service)
<a href="{{ $service->link() }}" class="flex flex-col box group"> <a href="{{ $service->link() }}" class="flex flex-col box group">
<span <div class="flex flex-col">
class="font-bold dark:text-white">{{ $service->project()->name }}/{{ $service->environment->name }}</span> <div class="box-title">{{ $service->project()->name }}/{{ $service->environment->name }}
<span class="dark:text-white ">{{ $service->name }}</span> </div>
<span class="description">{{ $service->description }}</span> <div class="box-description">{{ $service->name }}</div>
<div class="box-description">{{ $service->description }}</div>
</div>
</a> </a>
@endforeach @endforeach
</div> </div>

View File

@@ -1,5 +1,5 @@
# documentation: https://appsmith.com # documentation: https://appsmith.com
# slogan: Appsmith is low-code application platform for building internal tools. # slogan: A low-code application platform for building internal tools.
# tags: lowcode,nocode,no,low,platform # tags: lowcode,nocode,no,low,platform
# logo: svgs/appsmith.svg # logo: svgs/appsmith.svg

View File

@@ -1,5 +1,5 @@
# documentation: https://appwrite.io # documentation: https://appwrite.io
# slogan: Appwrite is backend-as-a-service platform that simplifies the web & mobile app development. # slogan: A backend-as-a-service platform that simplifies the web & mobile app development.
# env_file: appwrite.env # env_file: appwrite.env
# tags: backend-as-a-service, platform # tags: backend-as-a-service, platform
# logo: svgs/appwrite.svg # logo: svgs/appwrite.svg

View File

@@ -1,5 +1,5 @@
# documentation: https://docs.baby-buddy.net # documentation: https://docs.baby-buddy.net
# slogan: Baby Buddy helps parents track their baby's daily activities, growth, and health with ease. # slogan: It helps parents track their baby's daily activities, growth, and health with ease.
# tags: baby, parents, health, growth, activities # tags: baby, parents, health, growth, activities
# logo: svgs/babybuddy.png # logo: svgs/babybuddy.png

View File

@@ -1,5 +1,5 @@
# documentation: https://github.com/linuxserver/budge # documentation: https://github.com/linuxserver/budge
# slogan: Budge is a budgeting personal finance app. # slogan: A budgeting personal finance app.
# tags: personal finance, budgeting, expense tracking # tags: personal finance, budgeting, expense tracking
services: services:

View File

@@ -12,8 +12,8 @@ services:
- N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N} - N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N}
- WEBHOOK_URL=${SERVICE_FQDN_N8N} - WEBHOOK_URL=${SERVICE_FQDN_N8N}
- N8N_HOST=${SERVICE_URL_N8N} - N8N_HOST=${SERVICE_URL_N8N}
- GENERIC_TIMEZONE="Europe/Berlin" - GENERIC_TIMEZONE=Europe/Berlin
- TZ="Europe/Berlin" - TZ=Europe/Berlin
- DB_TYPE=postgresdb - DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n} - DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}
- DB_POSTGRESDB_HOST=postgresql - DB_POSTGRESDB_HOST=postgresql

View File

@@ -12,8 +12,8 @@ services:
- N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N} - N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N}
- WEBHOOK_URL=${SERVICE_FQDN_N8N} - WEBHOOK_URL=${SERVICE_FQDN_N8N}
- N8N_HOST=${SERVICE_URL_N8N} - N8N_HOST=${SERVICE_URL_N8N}
- GENERIC_TIMEZONE="Europe/Berlin" - GENERIC_TIMEZONE=Europe/Berlin
- TZ="Europe/Berlin" - TZ=Europe/Berlin
volumes: volumes:
- n8n-data:/home/node/.n8n - n8n-data:/home/node/.n8n
healthcheck: healthcheck:

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{ {
"coolify": { "coolify": {
"v4": { "v4": {
"version": "4.0.0-beta.261" "version": "4.0.0-beta.267"
} }
} }
} }