Merge branch 'next' into mongodb-restore
This commit is contained in:
commit
e4aa3d310f
1
.github/pull_request_template.md
vendored
Normal file
1
.github/pull_request_template.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
> Always use `next` branch as destination branch for PRs, not `main`
|
@ -30,5 +30,5 @@ ### 4) Start development
|
|||||||
Mails are caught by Mailpit: `localhost:8025`
|
Mails are caught by Mailpit: `localhost:8025`
|
||||||
|
|
||||||
## New Service Contribution
|
## New Service Contribution
|
||||||
Check out the docs [here](https://coolify.io/docs/resources/services/add-service).
|
Check out the docs [here](https://coolify.io/docs/knowledge-base/add-a-service).
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ private function cleanup_stucked_resources()
|
|||||||
$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 @@ private function cleanup_stucked_resources()
|
|||||||
$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 @@ private function cleanup_stucked_resources()
|
|||||||
$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";
|
||||||
|
@ -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 @@ public function handle()
|
|||||||
$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 {
|
||||||
|
@ -710,7 +710,7 @@ private function check_image_locally_or_remotely()
|
|||||||
private function save_environment_variables()
|
private function save_environment_variables()
|
||||||
{
|
{
|
||||||
$envs = collect([]);
|
$envs = collect([]);
|
||||||
$ports = $this->application->settings->is_static ? [80] : $this->application->ports_exposes_array;
|
$ports = $this->application->main_port();
|
||||||
if ($this->pull_request_id !== 0) {
|
if ($this->pull_request_id !== 0) {
|
||||||
$this->env_filename = ".env-pr-$this->pull_request_id";
|
$this->env_filename = ".env-pr-$this->pull_request_id";
|
||||||
foreach ($this->application->environment_variables_preview as $env) {
|
foreach ($this->application->environment_variables_preview as $env) {
|
||||||
@ -718,22 +718,24 @@ private function save_environment_variables()
|
|||||||
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);
|
||||||
}
|
}
|
||||||
// Add PORT if not exists, use the first port as default
|
// Add PORT if not exists, use the first port as default
|
||||||
if ($this->application->environment_variables_preview->filter(fn ($env) => Str::of($env)->startsWith('PORT'))->isEmpty()) {
|
if ($this->application->environment_variables_preview->where('key', 'PORT')->isEmpty()) {
|
||||||
$envs->push("PORT={$ports[0]}");
|
$envs->push("PORT={$ports[0]}");
|
||||||
}
|
}
|
||||||
// Add HOST if not exists
|
// Add HOST if not exists
|
||||||
if ($this->application->environment_variables_preview->filter(fn ($env) => Str::of($env)->startsWith('HOST'))->isEmpty()) {
|
if ($this->application->environment_variables_preview->where('key', 'HOST')->isEmpty()) {
|
||||||
$envs->push("HOST=0.0.0.0");
|
$envs->push("HOST=0.0.0.0");
|
||||||
}
|
}
|
||||||
if ($this->application->environment_variables_preview->filter(fn ($env) => Str::of($env)->startsWith('SOURCE_COMMIT'))->isEmpty()) {
|
// Add SOURCE_COMMIT if not exists
|
||||||
|
if ($this->application->environment_variables_preview->where('key', 'SOURCE_COMMIT')->isEmpty()) {
|
||||||
if (!is_null($this->commit)) {
|
if (!is_null($this->commit)) {
|
||||||
$envs->push("SOURCE_COMMIT={$this->commit}");
|
$envs->push("SOURCE_COMMIT={$this->commit}");
|
||||||
} else {
|
} else {
|
||||||
@ -750,22 +752,24 @@ private function save_environment_variables()
|
|||||||
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);
|
||||||
}
|
}
|
||||||
// Add PORT if not exists, use the first port as default
|
// Add PORT if not exists, use the first port as default
|
||||||
if ($this->application->environment_variables->filter(fn ($env) => Str::of($env)->startsWith('PORT'))->isEmpty()) {
|
if ($this->application->environment_variables->where('key', 'PORT')->isEmpty()) {
|
||||||
$envs->push("PORT={$ports[0]}");
|
$envs->push("PORT={$ports[0]}");
|
||||||
}
|
}
|
||||||
// Add HOST if not exists
|
// Add HOST if not exists
|
||||||
if ($this->application->environment_variables->filter(fn ($env) => Str::of($env)->startsWith('HOST'))->isEmpty()) {
|
if ($this->application->environment_variables->where('key', 'HOST')->isEmpty()) {
|
||||||
$envs->push("HOST=0.0.0.0");
|
$envs->push("HOST=0.0.0.0");
|
||||||
}
|
}
|
||||||
if ($this->application->environment_variables->filter(fn ($env) => Str::of($env)->startsWith('SOURCE_COMMIT'))->isEmpty()) {
|
// Add SOURCE_COMMIT if not exists
|
||||||
|
if ($this->application->environment_variables->where('key', 'SOURCE_COMMIT')->isEmpty()) {
|
||||||
if (!is_null($this->commit)) {
|
if (!is_null($this->commit)) {
|
||||||
$envs->push("SOURCE_COMMIT={$this->commit}");
|
$envs->push("SOURCE_COMMIT={$this->commit}");
|
||||||
} else {
|
} else {
|
||||||
@ -1212,7 +1216,7 @@ private function generate_env_variables()
|
|||||||
private function generate_compose_file()
|
private function generate_compose_file()
|
||||||
{
|
{
|
||||||
$this->create_workdir();
|
$this->create_workdir();
|
||||||
$ports = $this->application->settings->is_static ? [80] : $this->application->ports_exposes_array;
|
$ports = $this->application->main_port();
|
||||||
$onlyPort = null;
|
$onlyPort = null;
|
||||||
if (count($ports) > 0) {
|
if (count($ports) > 0) {
|
||||||
$onlyPort = $ports[0];
|
$onlyPort = $ports[0];
|
||||||
@ -1506,7 +1510,7 @@ private function generate_local_persistent_volumes_only_volume_names()
|
|||||||
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) {
|
||||||
@ -1524,8 +1528,10 @@ private function generate_environment_variables($ports)
|
|||||||
}
|
}
|
||||||
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') {
|
||||||
@ -1535,8 +1541,10 @@ private function generate_environment_variables($ports)
|
|||||||
}
|
}
|
||||||
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) {
|
||||||
@ -1547,8 +1555,10 @@ private function generate_environment_variables($ports)
|
|||||||
}
|
}
|
||||||
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') {
|
||||||
@ -1558,8 +1568,10 @@ private function generate_environment_variables($ports)
|
|||||||
}
|
}
|
||||||
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
|
||||||
@ -1577,8 +1589,9 @@ private function generate_environment_variables($ports)
|
|||||||
$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()
|
||||||
{
|
{
|
||||||
|
@ -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 @@ public function instantSave()
|
|||||||
$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) {
|
||||||
|
@ -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 @@ public function submit($showToaster = true)
|
|||||||
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();
|
||||||
|
@ -12,28 +12,6 @@ class Edit extends Component
|
|||||||
'project.name' => 'required|min:3|max:255',
|
'project.name' => 'required|min:3|max:255',
|
||||||
'project.description' => 'nullable|string|max:255',
|
'project.description' => 'nullable|string|max:255',
|
||||||
];
|
];
|
||||||
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
|
||||||
|
|
||||||
public function saveKey($data)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$found = $this->project->environment_variables()->where('key', $data['key'])->first();
|
|
||||||
if ($found) {
|
|
||||||
throw new \Exception('Variable already exists.');
|
|
||||||
}
|
|
||||||
$this->project->environment_variables()->create([
|
|
||||||
'key' => $data['key'],
|
|
||||||
'value' => $data['value'],
|
|
||||||
'is_multiline' => $data['is_multiline'],
|
|
||||||
'is_literal' => $data['is_literal'],
|
|
||||||
'type' => 'project',
|
|
||||||
'team_id' => currentTeam()->id,
|
|
||||||
]);
|
|
||||||
$this->project->refresh();
|
|
||||||
} catch (\Throwable $e) {
|
|
||||||
return handleError($e, $this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$projectUuid = request()->route('project_uuid');
|
$projectUuid = request()->route('project_uuid');
|
||||||
|
@ -16,29 +16,6 @@ class EnvironmentEdit extends Component
|
|||||||
'environment.name' => 'required|min:3|max:255',
|
'environment.name' => 'required|min:3|max:255',
|
||||||
'environment.description' => 'nullable|min:3|max:255',
|
'environment.description' => 'nullable|min:3|max:255',
|
||||||
];
|
];
|
||||||
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
|
||||||
|
|
||||||
public function saveKey($data)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$found = $this->environment->environment_variables()->where('key', $data['key'])->first();
|
|
||||||
if ($found) {
|
|
||||||
throw new \Exception('Variable already exists.');
|
|
||||||
}
|
|
||||||
$this->environment->environment_variables()->create([
|
|
||||||
'key' => $data['key'],
|
|
||||||
'value' => $data['value'],
|
|
||||||
'is_multiline' => $data['is_multiline'],
|
|
||||||
'is_literal' => $data['is_literal'],
|
|
||||||
'type' => 'environment',
|
|
||||||
'team_id' => currentTeam()->id,
|
|
||||||
]);
|
|
||||||
$this->environment->refresh();
|
|
||||||
} catch (\Throwable $e) {
|
|
||||||
return handleError($e, $this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->parameters = get_route_parameters();
|
$this->parameters = get_route_parameters();
|
||||||
|
@ -50,9 +50,9 @@ public function mount()
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
19
app/Livewire/SharedVariables/Environment/Index.php
Normal file
19
app/Livewire/SharedVariables/Environment/Index.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\SharedVariables\Environment;
|
||||||
|
|
||||||
|
use App\Models\Project;
|
||||||
|
use Illuminate\Support\Collection;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Index extends Component
|
||||||
|
{
|
||||||
|
public Collection $projects;
|
||||||
|
public function mount() {
|
||||||
|
$this->projects = Project::ownedByCurrentTeam()->get();
|
||||||
|
}
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.shared-variables.environment.index');
|
||||||
|
}
|
||||||
|
}
|
47
app/Livewire/SharedVariables/Environment/Show.php
Normal file
47
app/Livewire/SharedVariables/Environment/Show.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\SharedVariables\Environment;
|
||||||
|
|
||||||
|
use App\Models\Application;
|
||||||
|
use App\Models\Project;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Show extends Component
|
||||||
|
{
|
||||||
|
public Project $project;
|
||||||
|
public Application $application;
|
||||||
|
public $environment;
|
||||||
|
public array $parameters;
|
||||||
|
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
||||||
|
|
||||||
|
public function saveKey($data)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$found = $this->environment->environment_variables()->where('key', $data['key'])->first();
|
||||||
|
if ($found) {
|
||||||
|
throw new \Exception('Variable already exists.');
|
||||||
|
}
|
||||||
|
$this->environment->environment_variables()->create([
|
||||||
|
'key' => $data['key'],
|
||||||
|
'value' => $data['value'],
|
||||||
|
'is_multiline' => $data['is_multiline'],
|
||||||
|
'is_literal' => $data['is_literal'],
|
||||||
|
'type' => 'environment',
|
||||||
|
'team_id' => currentTeam()->id,
|
||||||
|
]);
|
||||||
|
$this->environment->refresh();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
return handleError($e, $this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->parameters = get_route_parameters();
|
||||||
|
$this->project = Project::ownedByCurrentTeam()->where('uuid', request()->route('project_uuid'))->first();
|
||||||
|
$this->environment = $this->project->environments()->where('name', request()->route('environment_name'))->first();
|
||||||
|
}
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.shared-variables.environment.show');
|
||||||
|
}
|
||||||
|
}
|
13
app/Livewire/SharedVariables/Index.php
Normal file
13
app/Livewire/SharedVariables/Index.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\SharedVariables;
|
||||||
|
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Index extends Component
|
||||||
|
{
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.shared-variables.index');
|
||||||
|
}
|
||||||
|
}
|
19
app/Livewire/SharedVariables/Project/Index.php
Normal file
19
app/Livewire/SharedVariables/Project/Index.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\SharedVariables\Project;
|
||||||
|
|
||||||
|
use App\Models\Project;
|
||||||
|
use Illuminate\Support\Collection;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Index extends Component
|
||||||
|
{
|
||||||
|
public Collection $projects;
|
||||||
|
public function mount() {
|
||||||
|
$this->projects = Project::ownedByCurrentTeam()->get();
|
||||||
|
}
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.shared-variables.project.index');
|
||||||
|
}
|
||||||
|
}
|
47
app/Livewire/SharedVariables/Project/Show.php
Normal file
47
app/Livewire/SharedVariables/Project/Show.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\SharedVariables\Project;
|
||||||
|
|
||||||
|
use App\Models\Project;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Show extends Component
|
||||||
|
{
|
||||||
|
public Project $project;
|
||||||
|
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
||||||
|
|
||||||
|
public function saveKey($data)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$found = $this->project->environment_variables()->where('key', $data['key'])->first();
|
||||||
|
if ($found) {
|
||||||
|
throw new \Exception('Variable already exists.');
|
||||||
|
}
|
||||||
|
$this->project->environment_variables()->create([
|
||||||
|
'key' => $data['key'],
|
||||||
|
'value' => $data['value'],
|
||||||
|
'is_multiline' => $data['is_multiline'],
|
||||||
|
'is_literal' => $data['is_literal'],
|
||||||
|
'type' => 'project',
|
||||||
|
'team_id' => currentTeam()->id,
|
||||||
|
]);
|
||||||
|
$this->project->refresh();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
return handleError($e, $this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$projectUuid = request()->route('project_uuid');
|
||||||
|
$teamId = currentTeam()->id;
|
||||||
|
$project = Project::where('team_id', $teamId)->where('uuid', $projectUuid)->first();
|
||||||
|
if (!$project) {
|
||||||
|
return redirect()->route('dashboard');
|
||||||
|
}
|
||||||
|
$this->project = $project;
|
||||||
|
}
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.shared-variables.project.show');
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Livewire;
|
namespace App\Livewire\SharedVariables\Team;
|
||||||
|
|
||||||
use App\Models\Team;
|
use App\Models\Team;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class TeamSharedVariablesIndex extends Component
|
class Index extends Component
|
||||||
{
|
{
|
||||||
public Team $team;
|
public Team $team;
|
||||||
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey'];
|
||||||
@ -37,6 +37,6 @@ public function mount()
|
|||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.team-shared-variables-index');
|
return view('livewire.shared-variables.team.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Livewire\Team\Storage;
|
namespace App\Livewire\Storage;
|
||||||
|
|
||||||
use App\Models\S3Storage;
|
use App\Models\S3Storage;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -65,7 +65,7 @@ public function submit()
|
|||||||
$this->storage->team_id = currentTeam()->id;
|
$this->storage->team_id = currentTeam()->id;
|
||||||
$this->storage->testConnection();
|
$this->storage->testConnection();
|
||||||
$this->storage->save();
|
$this->storage->save();
|
||||||
return redirect()->route('team.storage.show', $this->storage->uuid);
|
return redirect()->route('storage.show', $this->storage->uuid);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$this->dispatch('error', 'Failed to create storage.', $e->getMessage());
|
$this->dispatch('error', 'Failed to create storage.', $e->getMessage());
|
||||||
// return handleError($e, $this);
|
// return handleError($e, $this);
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Livewire\Team\Storage;
|
namespace App\Livewire\Storage;
|
||||||
|
|
||||||
use App\Models\S3Storage;
|
use App\Models\S3Storage;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -43,7 +43,7 @@ public function delete()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->storage->delete();
|
$this->storage->delete();
|
||||||
return redirect()->route('team.storage.index');
|
return redirect()->route('storage.index');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Livewire\Team\Storage;
|
namespace App\Livewire\Storage;
|
||||||
|
|
||||||
use App\Models\S3Storage;
|
use App\Models\S3Storage;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -13,6 +13,6 @@ public function mount() {
|
|||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.team.storage.index');
|
return view('livewire.storage.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
22
app/Livewire/Storage/Show.php
Normal file
22
app/Livewire/Storage/Show.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Livewire\Storage;
|
||||||
|
|
||||||
|
use App\Models\S3Storage;
|
||||||
|
use Livewire\Component;
|
||||||
|
|
||||||
|
class Show extends Component
|
||||||
|
{
|
||||||
|
public $storage = null;
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
$this->storage = S3Storage::ownedByCurrentTeam()->whereUuid(request()->storage_uuid)->first();
|
||||||
|
if (!$this->storage) {
|
||||||
|
abort(404);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('livewire.storage.show');
|
||||||
|
}
|
||||||
|
}
|
33
app/Livewire/Tags/Deployments.php
Normal file
33
app/Livewire/Tags/Deployments.php
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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 @@ public function mount()
|
|||||||
{
|
{
|
||||||
$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()
|
||||||
|
@ -17,6 +17,6 @@ public function mount()
|
|||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.team.storage.show');
|
return view('livewire.storage.show');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -346,6 +346,10 @@ public function serviceType()
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
public function main_port()
|
||||||
|
{
|
||||||
|
return $this->settings->is_static ? [80] : $this->ports_exposes_array;
|
||||||
|
}
|
||||||
public function environment_variables(): HasMany
|
public function environment_variables(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany(EnvironmentVariable::class)->where('is_preview', false)->orderBy('key', 'asc');
|
return $this->hasMany(EnvironmentVariable::class)->where('is_preview', false)->orderBy('key', 'asc');
|
||||||
@ -579,9 +583,9 @@ function generateGitImportCommands(string $deployment_uuid, int $pull_request_id
|
|||||||
['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";
|
||||||
|
@ -48,7 +48,7 @@ public function testConnection(bool $shouldSave = false)
|
|||||||
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject('Coolify: S3 Storage Connection Error');
|
$mail->subject('Coolify: S3 Storage Connection Error');
|
||||||
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('team.storage.show', ['storage_uuid' => $this->uuid])]);
|
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('storage.show', ['storage_uuid' => $this->uuid])]);
|
||||||
$users = collect([]);
|
$users = collect([]);
|
||||||
$members = $this->team->members()->get();
|
$members = $this->team->members()->get();
|
||||||
foreach ($members as $user) {
|
foreach ($members as $user) {
|
||||||
|
@ -207,4 +207,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return $this->clickhouse_db;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -207,4 +207,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -208,5 +208,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -208,4 +208,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return $this->mariadb_database;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,4 +223,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return $this->mongo_db;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -209,4 +209,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return $this->mysql_database;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -208,4 +208,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return $this->postgres_db;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -204,4 +204,7 @@ public function scheduledBackups()
|
|||||||
{
|
{
|
||||||
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
return $this->morphMany(ScheduledDatabaseBackup::class, 'database');
|
||||||
}
|
}
|
||||||
|
public function database_name() {
|
||||||
|
return '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 @@ public function toMail(): MailMessage
|
|||||||
$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 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
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,
|
||||||
];
|
];
|
||||||
|
@ -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 @@ public function toMail(): MailMessage
|
|||||||
$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 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
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,
|
||||||
];
|
];
|
||||||
|
38
app/View/Components/Forms/Datalist.php
Normal file
38
app/View/Components/Forms/Datalist.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
@ -23,10 +23,11 @@ public function __construct(
|
|||||||
public bool $disabled = false,
|
public bool $disabled = false,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
public bool $allowTab = false,
|
public bool $allowTab = false,
|
||||||
|
public bool $spellcheck = false,
|
||||||
public ?string $helper = null,
|
public ?string $helper = null,
|
||||||
public bool $realtimeValidation = false,
|
public bool $realtimeValidation = false,
|
||||||
public bool $allowToPeak = true,
|
public bool $allowToPeak = true,
|
||||||
public string $defaultClass = "input scrollbar",
|
public string $defaultClass = "input scrollbar font-mono",
|
||||||
public string $defaultClassInput = "input"
|
public string $defaultClassInput = "input"
|
||||||
) {
|
) {
|
||||||
//
|
//
|
||||||
|
@ -18,7 +18,7 @@ function collectRegex(string $name)
|
|||||||
}
|
}
|
||||||
function replaceVariables($variable)
|
function replaceVariables($variable)
|
||||||
{
|
{
|
||||||
return $variable->replaceFirst('$', '')->replaceFirst('{', '')->replaceLast('}', '');
|
return $variable->after('${')->before('}');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)
|
function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)
|
||||||
|
@ -29,11 +29,13 @@
|
|||||||
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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
// 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.266',
|
'release' => '4.0.0-beta.269',
|
||||||
// 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'),
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return '4.0.0-beta.266';
|
return '4.0.0-beta.269';
|
||||||
|
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
@ -177,27 +177,7 @@ public function run(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
|
1
public/svgs/odoo.svg
Normal file
1
public/svgs/odoo.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 919 495"><path d="M695,346a75,75,0,1,1,75-75A75,75,0,0,1,695,346Zm0-31a44,44,0,1,0-44-44A44,44,0,0,0,695,315ZM538,346a75,75,0,1,1,75-75A75,75,0,0,1,538,346Zm0-31a44,44,0,1,0-44-44A44,44,0,0,0,538,315Zm-82-45c0,41.9-33.6,76-75,76s-75-34-75-75.9S336.5,196,381,196c16.4,0,31.6,3.5,44,12.6V165.1c0-8.3,7.3-15.1,15.5-15.1s15.5,6.8,15.5,15.1Zm-75,45a44,44,0,1,0-44-44A44,44,0,0,0,381,315Z" style="fill:#8f8f8f"/><path d="M224,346a75,75,0,1,1,75-75A75,75,0,0,1,224,346Zm0-31a44,44,0,1,0-44-44A44,44,0,0,0,224,315Z" style="fill:#714b67"/></svg>
|
After Width: | Height: | Size: 589 B |
@ -133,6 +133,11 @@ .badge {
|
|||||||
@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 @@ .kbd-custom {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.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 ;
|
||||||
|
44
resources/views/components/forms/datalist.blade.php
Normal file
44
resources/views/components/forms/datalist.blade.php
Normal 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>
|
@ -56,7 +56,7 @@ class="absolute inset-y-0 right-0 flex items-center h-6 pt-2 pr-2 cursor-pointer
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<textarea {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }}
|
<textarea {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ !$spellcheck ? 'spellcheck=false' : '' }} {{ $attributes->merge(['class' => $defaultClass]) }}
|
||||||
@if ($realtimeValidation) wire:model.debounce.200ms="{{ $id }}"
|
@if ($realtimeValidation) wire:model.debounce.200ms="{{ $id }}"
|
||||||
@else
|
@else
|
||||||
wire:model={{ $value ?? $id }}
|
wire:model={{ $value ?? $id }}
|
||||||
|
@ -156,6 +156,33 @@ class="{{ request()->is('destination*') ? 'menu-item-active menu-item' : 'menu-i
|
|||||||
Destinations
|
Destinations
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a title="S3 Storages"
|
||||||
|
class="{{ request()->is('storages*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
||||||
|
href="{{ route('storage.index') }}">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24">
|
||||||
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
|
||||||
|
<path d="M4 6a8 3 0 1 0 16 0A8 3 0 1 0 4 6"/>
|
||||||
|
<path d="M4 6v6a8 3 0 0 0 16 0V6"/>
|
||||||
|
<path d="M4 12v6a8 3 0 0 0 16 0v-6"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
S3 Storages
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a title="Shared variables"
|
||||||
|
class="{{ request()->is('shared-variables*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
||||||
|
href="{{ route('shared-variables.index') }}">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24">
|
||||||
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
|
||||||
|
<path d="M5 4C2.5 9 2.5 14 5 20M19 4c2.5 5 2.5 10 0 16M9 9h1c1 0 1 1 2.016 3.527C13 15 13 16 14 16h1"/>
|
||||||
|
<path d="M8 16c1.5 0 3-2 4-3.5S14.5 9 16 9"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
Shared Variables
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a title="Notifications"
|
<a title="Notifications"
|
||||||
class="{{ request()->is('notifications*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
class="{{ request()->is('notifications*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<h1>Team</h1>
|
<h1>Team</h1>
|
||||||
<x-modal-input buttonTitle="+ Add" title="New Team">
|
<x-modal-input buttonTitle="+ Add" title="New Team">
|
||||||
<livewire:team.create/>
|
<livewire:team.create />
|
||||||
</x-modal-input>
|
</x-modal-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="subtitle">Team settings & shared environment variables.</div>
|
<div class="subtitle">Team wide configurations.</div>
|
||||||
<nav class="navbar-main">
|
<nav class="navbar-main">
|
||||||
<a class="{{ request()->routeIs('team.index') ? 'dark:text-white' : '' }}" href="{{ route('team.index') }}">
|
<a class="{{ request()->routeIs('team.index') ? 'dark:text-white' : '' }}" href="{{ route('team.index') }}">
|
||||||
<button>General</button>
|
<button>General</button>
|
||||||
@ -14,14 +14,6 @@
|
|||||||
href="{{ route('team.member.index') }}">
|
href="{{ route('team.member.index') }}">
|
||||||
<button>Members</button>
|
<button>Members</button>
|
||||||
</a>
|
</a>
|
||||||
<a class="{{ request()->routeIs('team.storage.index') ? 'dark:text-white' : '' }}"
|
|
||||||
href="{{ route('team.storage.index') }}">
|
|
||||||
<button>S3 Storages</button>
|
|
||||||
</a>
|
|
||||||
<a class="{{ request()->routeIs('team.shared-variables.index') ? 'dark:text-white' : '' }}"
|
|
||||||
href="{{ route('team.shared-variables.index') }}">
|
|
||||||
<button>Shared Variables</button>
|
|
||||||
</a>
|
|
||||||
<div class="flex-1"></div>
|
<div class="flex-1"></div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div>Your feedback helps us to improve Coolify. Thank you! 💜</div>
|
<div>Your feedback helps us to improve Coolify. Thank you! 💜</div>
|
||||||
<form wire:submit="submit" class="flex flex-col gap-4 pt-4">
|
<form wire:submit="submit" class="flex flex-col gap-4 pt-4">
|
||||||
<x-forms.input id="subject" label="Subject" placeholder="Summary of your problem."></x-forms.input>
|
<x-forms.input id="subject" label="Subject" placeholder="Summary of your problem."></x-forms.input>
|
||||||
<x-forms.textarea rows="10" id="description" label="Description"
|
<x-forms.textarea rows="10" id="description" label="Description" class="font-sans" spellcheck
|
||||||
placeholder="Please provide as much information as possible."></x-forms.textarea>
|
placeholder="Please provide as much information as possible."></x-forms.textarea>
|
||||||
<div></div>
|
<div></div>
|
||||||
<x-forms.button class="w-full mt-4" type="submit" @click="modalOpen=false">Send</x-forms.button>
|
<x-forms.button class="w-full mt-4" type="submit" @click="modalOpen=false">Send</x-forms.button>
|
||||||
|
@ -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
|
||||||
|
@ -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,18 +38,13 @@
|
|||||||
</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">
|
||||||
<x-forms.input
|
<x-forms.input
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "
|
||||||
label="Domains for {{ str($serviceName)->headline() }}"
|
label="Domains for {{ str($serviceName)->headline() }}"
|
||||||
id="parsedServiceDomains.{{ $serviceName }}.domain"></x-forms.input>
|
id="parsedServiceDomains.{{ $serviceName }}.domain"></x-forms.input>
|
||||||
<x-forms.button wire:click="generateDomain('{{ $serviceName }}')">Generate
|
<x-forms.button wire:click="generateDomain('{{ $serviceName }}')">Generate
|
||||||
@ -64,7 +59,7 @@
|
|||||||
@if ($application->build_pack !== 'dockercompose')
|
@if ($application->build_pack !== 'dockercompose')
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="https://coolify.io" id="application.fqdn" label="Domains"
|
<x-forms.input placeholder="https://coolify.io" id="application.fqdn" label="Domains"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. " />
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. " />
|
||||||
<x-forms.button wire:click="getWildcardDomain">Generate Domain
|
<x-forms.button wire:click="getWildcardDomain">Generate Domain
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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 @@ class="dark:text-warning">{{ $application->private_key->name }}</span>
|
|||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endisset
|
@endif
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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>
|
||||||
|
@ -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 = {
|
||||||
|
@ -14,24 +14,4 @@
|
|||||||
<x-forms.input label="Description" id="project.description" />
|
<x-forms.input label="Description" id="project.description" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="flex gap-2">
|
|
||||||
<h2>Shared Variables</h2>
|
|
||||||
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
|
||||||
<livewire:project.shared.environment-variable.add :shared="true" />
|
|
||||||
</x-modal-input>
|
|
||||||
</div>
|
|
||||||
<div class="pb-4 lg:flex lg:gap-1">
|
|
||||||
<div>You can use these variables anywhere with</div>
|
|
||||||
<div class=" dark:text-warning text-coollabs">@{{ project.VARIABLENAME }} </div>
|
|
||||||
<x-helper
|
|
||||||
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col gap-2">
|
|
||||||
@forelse ($project->environment_variables->sort()->sortBy('key') as $env)
|
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
|
||||||
:env="$env" type="project" />
|
|
||||||
@empty
|
|
||||||
<div>No environment variables found.</div>
|
|
||||||
@endforelse
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,21 +42,4 @@
|
|||||||
<x-forms.input label="Description" id="environment.description" />
|
<x-forms.input label="Description" id="environment.description" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="flex gap-2 pt-10">
|
|
||||||
<h2>Shared Variables</h2>
|
|
||||||
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
|
||||||
<livewire:project.shared.environment-variable.add :shared="true" />
|
|
||||||
</x-modal-input>
|
|
||||||
</div>
|
|
||||||
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="dark:text-warning text-coollabs">@{{environment.VARIABLENAME}}</span><x-helper
|
|
||||||
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col gap-2">
|
|
||||||
@forelse ($environment->environment_variables->sort()->sortBy('key') as $env)
|
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
|
||||||
:env="$env" type="environment" />
|
|
||||||
@empty
|
|
||||||
<div>No environment variables found.</div>
|
|
||||||
@endforelse
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -576,9 +576,9 @@ class="w-[4.5rem]
|
|||||||
@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 @@ class="w-[4.5rem]
|
|||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
@ -50,321 +50,311 @@ class="items-center justify-center box">+ Add New Resource</a>
|
|||||||
<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>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<form wire:submit.prevent='submit' class="flex flex-col w-full gap-2">
|
<form wire:submit.prevent='submit' class="flex flex-col w-full gap-2">
|
||||||
<div class="pb-2">Note: If a service has a defined port, do not delete it. <br>If you want to use your custom domain, you can add it with a port.</div>
|
<div class="pb-2">Note: If a service has a defined port, do not delete it. <br>If you want to use your custom domain, you can add it with a port.</div>
|
||||||
<x-forms.input required placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"
|
<x-forms.input required placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
||||||
<x-forms.button type="submit">Save</x-forms.button>
|
<x-forms.button type="submit">Save</x-forms.button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
@if ($application->required_fqdn)
|
@if ($application->required_fqdn)
|
||||||
<x-forms.input required placeholder="https://app.coolify.io" label="Domains"
|
<x-forms.input required placeholder="https://app.coolify.io" label="Domains"
|
||||||
id="application.fqdn"
|
id="application.fqdn"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
||||||
@else
|
@else
|
||||||
<x-forms.input placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"
|
<x-forms.input placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
<x-forms.input required
|
<x-forms.input required
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<form wire:submit='submit'
|
<form wire:submit='submit'
|
||||||
class="flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base dark:border-coolgray-300">
|
class="flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base dark:border-coolgray-300">
|
||||||
@if (!$env->isFoundInCompose)
|
@if (!$env->isFoundInCompose && !$isSharedVariable)
|
||||||
<div class="flex items-center justify-center gap-2 dark:text-warning text-coollabs"> <svg
|
<div class="flex items-center justify-center gap-2 dark:text-warning text-coollabs"> <svg
|
||||||
class="hidden w-4 h-4 dark:text-warning lg:block" viewBox="0 0 256 256"
|
class="hidden w-4 h-4 dark:text-warning lg:block" viewBox="0 0 256 256"
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
xmlns="http://www.w3.org/2000/svg">
|
||||||
|
@ -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.
|
||||||
|
@ -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 @@ class="inline-block w-3 h-3 rounded cursor-pointer stroke-current hover:bg-red-5
|
|||||||
@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>
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
<div>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<h1>Environments</h1>
|
||||||
|
</div>
|
||||||
|
<div class="subtitle">List of your environments by projects.</div>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
@forelse ($projects as $project)
|
||||||
|
<h2>{{ data_get($project, 'name') }}</h2>
|
||||||
|
<div class="pt-0 pb-3">{{ data_get($project, 'description') }}</div>
|
||||||
|
@forelse ($project->environments as $environment)
|
||||||
|
<a class="box group"
|
||||||
|
href="{{ route('shared-variables.environment.show', ['project_uuid' => $project->uuid, 'environment_name' => $environment->name]) }}">
|
||||||
|
<div class="flex flex-col justify-center flex-1 mx-6 ">
|
||||||
|
<div class="box-title"> {{ $environment->name }}</div>
|
||||||
|
<div class="box-description">
|
||||||
|
{{ $environment->description }}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
@empty
|
||||||
|
<p>No environments found.</p>
|
||||||
|
@endforelse
|
||||||
|
@empty
|
||||||
|
<div>
|
||||||
|
<div>No project found.</div>
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,20 @@
|
|||||||
|
<div>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<h1>Shared Variables for {{ $project->name }}/{{ $environment->name }}</h1>
|
||||||
|
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
||||||
|
<livewire:project.shared.environment-variable.add :shared="true" />
|
||||||
|
</x-modal-input>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-1 subtitle">You can use these variables anywhere with <span
|
||||||
|
class="dark:text-warning text-coollabs">@{{ environment.VARIABLENAME }}</span><x-helper
|
||||||
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
@forelse ($environment->environment_variables->sort()->sortBy('key') as $env)
|
||||||
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
|
:env="$env" type="environment" />
|
||||||
|
@empty
|
||||||
|
<div>No environment variables found.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
28
resources/views/livewire/shared-variables/index.blade.php
Normal file
28
resources/views/livewire/shared-variables/index.blade.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<div>
|
||||||
|
<div class="flex items-start gap-2">
|
||||||
|
<h1>Shared Variables</h1>
|
||||||
|
</div>
|
||||||
|
<div class="subtitle">Set Team / Project / Environment wide variables.</div>
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
<a class="box group" href="{{ route('shared-variables.team.index') }}">
|
||||||
|
<div class="flex flex-col justify-center mx-6">
|
||||||
|
<div class="box-title">Team wide</div>
|
||||||
|
<div class="box-description">Usable for all resources in a team.</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<a class="box group" href="{{ route('shared-variables.project.index') }}">
|
||||||
|
<div class="flex flex-col justify-center mx-6">
|
||||||
|
<div class="box-title">Project wide</div>
|
||||||
|
<div class="box-description">Usable for all resources in a project.</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<a class="box group" href="{{ route('shared-variables.environment.index') }}">
|
||||||
|
<div class="flex flex-col justify-center mx-6">
|
||||||
|
<div class="box-title">Environment wide</div>
|
||||||
|
<div class="box-description">Usable for all resources in an environment.</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,22 @@
|
|||||||
|
<div>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<h1>Projects</h1>
|
||||||
|
</div>
|
||||||
|
<div class="subtitle">List of your projects.</div>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
@forelse ($projects as $project)
|
||||||
|
<a class="box group"
|
||||||
|
href="{{ route('shared-variables.project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
|
||||||
|
<div class="flex flex-col justify-center mx-6 ">
|
||||||
|
<div class="box-title">{{ $project->name }}</div>
|
||||||
|
<div class="box-description ">
|
||||||
|
{{ $project->description }}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
@empty
|
||||||
|
<div>
|
||||||
|
<div>No project found.</div>
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,22 @@
|
|||||||
|
<div>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<h1>Shared Variables for {{data_get($project,'name')}}</h1>
|
||||||
|
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
||||||
|
<livewire:project.shared.environment-variable.add :shared="true" />
|
||||||
|
</x-modal-input>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-wrap gap-1 subtitle">
|
||||||
|
<div>You can use these variables anywhere with</div>
|
||||||
|
<div class="dark:text-warning text-coollabs">@{{ project.VARIABLENAME }} </div>
|
||||||
|
<x-helper
|
||||||
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
@forelse ($project->environment_variables->sort()->sortBy('key') as $env)
|
||||||
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
|
:env="$env" type="project" />
|
||||||
|
@empty
|
||||||
|
<div>No environment variables found.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,12 +1,11 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-team.navbar />
|
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<h2>Shared Variables</h2>
|
<h1>Team Shared Variables</h1>
|
||||||
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
||||||
<livewire:project.shared.environment-variable.add :shared="true" />
|
<livewire:project.shared.environment-variable.add :shared="true" />
|
||||||
</x-modal-input>
|
</x-modal-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span
|
<div class="flex items-center gap-1 subtitle">You can use these variables anywhere with <span
|
||||||
class="dark:text-warning text-coollabs">@{{ team.VARIABLENAME }}</span> <x-helper
|
class="dark:text-warning text-coollabs">@{{ team.VARIABLENAME }}</span> <x-helper
|
||||||
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
@ -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>
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
|
<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
|
||||||
<div class="flex items-start gap-2">
|
<div class="flex items-start gap-2">
|
||||||
<div class="pb-4">
|
<div class="pb-4">
|
||||||
<h2>Storage Details</h2>
|
<h1>Storage Details</h1>
|
||||||
<div>{{ $storage->name }}</div>
|
<div class="subtitle">{{ $storage->name }}</div>
|
||||||
@if ($storage->is_usable)
|
@if ($storage->is_usable)
|
||||||
<div> Usable </div>
|
<div>Usable</div>
|
||||||
@else
|
@else
|
||||||
<div class="text-red-500"> Not Usable </div>
|
<div class="text-red-500">Not Usable</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<x-forms.button type="submit">
|
<x-forms.button type="submit">
|
@ -1,13 +1,11 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-team.navbar :team="auth()->user()->currentTeam()" />
|
|
||||||
<div class="flex items-start gap-2">
|
<div class="flex items-start gap-2">
|
||||||
<h2 class="pb-4">S3 Storages</h2>
|
<h1>S3 Storages</h1>
|
||||||
<x-modal-input buttonTitle="+ Add" title="New S3 Storage">
|
<x-modal-input buttonTitle="+ Add" title="New S3 Storage">
|
||||||
<livewire:team.storage.create />
|
<livewire:storage.create />
|
||||||
</x-modal-input>
|
</x-modal-input>
|
||||||
{{-- <a class="dark:text-white hover:no-underline" href="/team/storages/new"> <x-forms.button>+ Add
|
|
||||||
</x-forms.button></a> --}}
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="subtitle">S3 storages for backups.</div>
|
||||||
<div class="grid gap-2 lg:grid-cols-2">
|
<div class="grid gap-2 lg:grid-cols-2">
|
||||||
@forelse ($s3 as $storage)
|
@forelse ($s3 as $storage)
|
||||||
<div x-data x-on:click="goto('{{ $storage->uuid }}')" @class(['gap-2 border cursor-pointer box group border-transparent'])>
|
<div x-data x-on:click="goto('{{ $storage->uuid }}')" @class(['gap-2 border cursor-pointer box group border-transparent'])>
|
||||||
@ -27,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
function goto(uuid) {
|
function goto(uuid) {
|
||||||
window.location.href = '/team/storages/' + uuid;
|
window.location.href = '/storages/' + uuid;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
3
resources/views/livewire/storage/show.blade.php
Normal file
3
resources/views/livewire/storage/show.blade.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<div>
|
||||||
|
<livewire:storage.form :storage="$storage" />
|
||||||
|
</div>
|
28
resources/views/livewire/tags/deployments.blade.php
Normal file
28
resources/views/livewire/tags/deployments.blade.php
Normal 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>
|
@ -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
|
||||||
|
@ -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 @@ class="w-64 box"
|
|||||||
</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>
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<div>
|
|
||||||
<x-team.navbar :team="auth()
|
|
||||||
->user()
|
|
||||||
->currentTeam()" />
|
|
||||||
<livewire:team.storage.form :storage="$storage" />
|
|
||||||
</div>
|
|
@ -1,3 +0,0 @@
|
|||||||
<div>
|
|
||||||
{{-- If you look to others for fulfillment, you will never truly be fulfilled. --}}
|
|
||||||
</div>
|
|
@ -27,11 +27,18 @@
|
|||||||
use App\Livewire\Notifications\Discord as NotificationDiscord;
|
use App\Livewire\Notifications\Discord as NotificationDiscord;
|
||||||
|
|
||||||
use App\Livewire\Team\Index as TeamIndex;
|
use App\Livewire\Team\Index as TeamIndex;
|
||||||
|
|
||||||
use App\Livewire\Team\Storage\Index as TeamStorageIndex;
|
|
||||||
use App\Livewire\Team\Storage\Show as TeamStorageShow;
|
|
||||||
use App\Livewire\Team\Member\Index as TeamMemberIndex;
|
use App\Livewire\Team\Member\Index as TeamMemberIndex;
|
||||||
|
|
||||||
|
use App\Livewire\Storage\Index as StorageIndex;
|
||||||
|
use App\Livewire\Storage\Show as StorageShow;
|
||||||
|
|
||||||
|
use App\Livewire\SharedVariables\Index as SharedVariablesIndex;
|
||||||
|
use App\Livewire\SharedVariables\Team\Index as TeamSharedVariablesIndex;
|
||||||
|
use App\Livewire\SharedVariables\Project\Index as ProjectSharedVariablesIndex;
|
||||||
|
use App\Livewire\SharedVariables\Project\Show as ProjectSharedVariablesShow;
|
||||||
|
use App\Livewire\SharedVariables\Environment\Index as EnvironmentSharedVariablesIndex;
|
||||||
|
use App\Livewire\SharedVariables\Environment\Show as EnvironmentSharedVariablesShow;
|
||||||
|
|
||||||
use App\Livewire\CommandCenter\Index as CommandCenterIndex;
|
use App\Livewire\CommandCenter\Index as CommandCenterIndex;
|
||||||
use App\Livewire\ForcePasswordReset;
|
use App\Livewire\ForcePasswordReset;
|
||||||
use App\Livewire\Project\Index as ProjectIndex;
|
use App\Livewire\Project\Index as ProjectIndex;
|
||||||
@ -76,7 +83,6 @@
|
|||||||
use App\Livewire\Tags\Index as TagsIndex;
|
use App\Livewire\Tags\Index as TagsIndex;
|
||||||
use App\Livewire\Tags\Show as TagsShow;
|
use App\Livewire\Tags\Show as TagsShow;
|
||||||
|
|
||||||
use App\Livewire\TeamSharedVariablesIndex;
|
|
||||||
use App\Livewire\Waitlist\Index as WaitlistIndex;
|
use App\Livewire\Waitlist\Index as WaitlistIndex;
|
||||||
use App\Models\ScheduledDatabaseBackupExecution;
|
use App\Models\ScheduledDatabaseBackupExecution;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
@ -126,23 +132,34 @@
|
|||||||
Route::get('/settings/license', SettingsLicense::class)->name('settings.license');
|
Route::get('/settings/license', SettingsLicense::class)->name('settings.license');
|
||||||
|
|
||||||
Route::get('/profile', ProfileIndex::class)->name('profile');
|
Route::get('/profile', ProfileIndex::class)->name('profile');
|
||||||
|
|
||||||
Route::prefix('tags')->group(function () {
|
Route::prefix('tags')->group(function () {
|
||||||
Route::get('/', TagsIndex::class)->name('tags.index');
|
Route::get('/', TagsIndex::class)->name('tags.index');
|
||||||
Route::get('/{tag_name}', TagsShow::class)->name('tags.show');
|
Route::get('/{tag_name}', TagsShow::class)->name('tags.show');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::prefix('notifications')->group(function () {
|
Route::prefix('notifications')->group(function () {
|
||||||
Route::get('/email', NotificationEmail::class)->name('notifications.email');
|
Route::get('/email', NotificationEmail::class)->name('notifications.email');
|
||||||
Route::get('/telegram', NotificationTelegram::class)->name('notifications.telegram');
|
Route::get('/telegram', NotificationTelegram::class)->name('notifications.telegram');
|
||||||
Route::get('/discord', NotificationDiscord::class)->name('notifications.discord');
|
Route::get('/discord', NotificationDiscord::class)->name('notifications.discord');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::prefix('storages')->group(function () {
|
||||||
|
Route::get('/', StorageIndex::class)->name('storage.index');
|
||||||
|
Route::get('/{storage_uuid}', StorageShow::class)->name('storage.show');
|
||||||
|
});
|
||||||
|
Route::prefix('shared-variables')->group(function () {
|
||||||
|
Route::get('/', SharedVariablesIndex::class)->name('shared-variables.index');
|
||||||
|
Route::get('/team', TeamSharedVariablesIndex::class)->name('shared-variables.team.index');
|
||||||
|
Route::get('/projects', ProjectSharedVariablesIndex::class)->name('shared-variables.project.index');
|
||||||
|
Route::get('/project/{project_uuid}', ProjectSharedVariablesShow::class)->name('shared-variables.project.show');
|
||||||
|
Route::get('/environments', EnvironmentSharedVariablesIndex::class)->name('shared-variables.environment.index');
|
||||||
|
Route::get('/environment/{project_uuid}/{environment_name}', EnvironmentSharedVariablesShow::class)->name('shared-variables.environment.show');
|
||||||
|
});
|
||||||
|
|
||||||
Route::prefix('team')->group(function () {
|
Route::prefix('team')->group(function () {
|
||||||
Route::get('/', TeamIndex::class)->name('team.index');
|
Route::get('/', TeamIndex::class)->name('team.index');
|
||||||
// Route::get('/new', TeamCreate::class)->name('team.create');
|
|
||||||
Route::get('/members', TeamMemberIndex::class)->name('team.member.index');
|
Route::get('/members', TeamMemberIndex::class)->name('team.member.index');
|
||||||
Route::get('/shared-variables', TeamSharedVariablesIndex::class)->name('team.shared-variables.index');
|
|
||||||
Route::get('/storages', TeamStorageIndex::class)->name('team.storage.index');
|
|
||||||
// Route::get('/storages/new', TeamStorageCreate::class)->name('team.storage.create');
|
|
||||||
Route::get('/storages/{storage_uuid}', TeamStorageShow::class)->name('team.storage.show');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/command-center', CommandCenterIndex::class)->name('command-center');
|
Route::get('/command-center', CommandCenterIndex::class)->name('command-center');
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
34
templates/compose/odoo.yaml
Normal file
34
templates/compose/odoo.yaml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# documentation: https://www.odoo.com/
|
||||||
|
# slogan: Odoo is a suite of open-source business apps that cover all your company needs.
|
||||||
|
# tags: business, apps, CRM, eCommerce, accounting, inventory, point of sale, project management, open-source
|
||||||
|
# logo: svgs/odoo.svg
|
||||||
|
# port: 8069
|
||||||
|
|
||||||
|
services:
|
||||||
|
odoo:
|
||||||
|
image: odoo:17
|
||||||
|
environment:
|
||||||
|
- SERVICE_FQDN_ODOO_8069
|
||||||
|
- HOST=postgresql
|
||||||
|
- USER=$SERVICE_USER_POSTGRES
|
||||||
|
- PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||||
|
volumes:
|
||||||
|
- odoo-web-data:/var/lib/odoo
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:8069"]
|
||||||
|
interval: 2s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 30
|
||||||
|
postgresql:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
volumes:
|
||||||
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
||||||
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d postgres"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 20s
|
||||||
|
retries: 10
|
@ -601,7 +601,7 @@
|
|||||||
"n8n-with-postgresql": {
|
"n8n-with-postgresql": {
|
||||||
"documentation": "https:\/\/n8n.io",
|
"documentation": "https:\/\/n8n.io",
|
||||||
"slogan": "n8n is an extendable workflow automation tool.",
|
"slogan": "n8n is an extendable workflow automation tool.",
|
||||||
"compose": "c2VydmljZXM6CiAgbjhuOgogICAgaW1hZ2U6IGRvY2tlci5uOG4uaW8vbjhuaW8vbjhuCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fTjhOXzU2NzgKICAgICAgLSAnTjhOX0VESVRPUl9CQVNFX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdXRUJIT09LX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdOOE5fSE9TVD0ke1NFUlZJQ0VfVVJMX044Tn0nCiAgICAgIC0gJ0dFTkVSSUNfVElNRVpPTkU9IkV1cm9wZS9CZXJsaW4iJwogICAgICAtICdUWj0iRXVyb3BlL0JlcmxpbiInCiAgICAgIC0gREJfVFlQRT1wb3N0Z3Jlc2RiCiAgICAgIC0gJ0RCX1BPU1RHUkVTREJfREFUQUJBU0U9JHtQT1NUR1JFU19EQjotbjhufScKICAgICAgLSBEQl9QT1NUR1JFU0RCX0hPU1Q9cG9zdGdyZXNxbAogICAgICAtIERCX1BPU1RHUkVTREJfUE9SVD01NDMyCiAgICAgIC0gREJfUE9TVEdSRVNEQl9VU0VSPSRTRVJWSUNFX1VTRVJfUE9TVEdSRVMKICAgICAgLSBEQl9QT1NUR1JFU0RCX1NDSEVNQT1wdWJsaWMKICAgICAgLSBEQl9QT1NUR1JFU0RCX1BBU1NXT1JEPSRTRVJWSUNFX1BBU1NXT1JEX1BPU1RHUkVTCiAgICB2b2x1bWVzOgogICAgICAtICduOG4tZGF0YTovaG9tZS9ub2RlLy5uOG4nCiAgICBkZXBlbmRzX29uOgogICAgICBwb3N0Z3Jlc3FsOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3dnZXQgLXFPLSBodHRwOi8vbG9jYWxob3N0OjU2NzgvJwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogMjBzCiAgICAgIHJldHJpZXM6IDEwCiAgcG9zdGdyZXNxbDoKICAgIGltYWdlOiAncG9zdGdyZXM6MTYtYWxwaW5lJwogICAgdm9sdW1lczoKICAgICAgLSAncG9zdGdyZXNxbC1kYXRhOi92YXIvbGliL3Bvc3RncmVzcWwvZGF0YScKICAgIGVudmlyb25tZW50OgogICAgICAtIFBPU1RHUkVTX1VTRVI9JFNFUlZJQ0VfVVNFUl9QT1NUR1JFUwogICAgICAtIFBPU1RHUkVTX1BBU1NXT1JEPSRTRVJWSUNFX1BBU1NXT1JEX1BPU1RHUkVTCiAgICAgIC0gJ1BPU1RHUkVTX0RCPSR7UE9TVEdSRVNfREI6LW44bn0nCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3BnX2lzcmVhZHkgLVUgJCR7UE9TVEdSRVNfVVNFUn0gLWQgJCR7UE9TVEdSRVNfREJ9JwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogMjBzCiAgICAgIHJldHJpZXM6IDEwCg==",
|
"compose": "c2VydmljZXM6CiAgbjhuOgogICAgaW1hZ2U6IGRvY2tlci5uOG4uaW8vbjhuaW8vbjhuCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fTjhOXzU2NzgKICAgICAgLSAnTjhOX0VESVRPUl9CQVNFX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdXRUJIT09LX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdOOE5fSE9TVD0ke1NFUlZJQ0VfVVJMX044Tn0nCiAgICAgIC0gR0VORVJJQ19USU1FWk9ORT1FdXJvcGUvQmVybGluCiAgICAgIC0gVFo9RXVyb3BlL0JlcmxpbgogICAgICAtIERCX1RZUEU9cG9zdGdyZXNkYgogICAgICAtICdEQl9QT1NUR1JFU0RCX0RBVEFCQVNFPSR7UE9TVEdSRVNfREI6LW44bn0nCiAgICAgIC0gREJfUE9TVEdSRVNEQl9IT1NUPXBvc3RncmVzcWwKICAgICAgLSBEQl9QT1NUR1JFU0RCX1BPUlQ9NTQzMgogICAgICAtIERCX1BPU1RHUkVTREJfVVNFUj0kU0VSVklDRV9VU0VSX1BPU1RHUkVTCiAgICAgIC0gREJfUE9TVEdSRVNEQl9TQ0hFTUE9cHVibGljCiAgICAgIC0gREJfUE9TVEdSRVNEQl9QQVNTV09SRD0kU0VSVklDRV9QQVNTV09SRF9QT1NUR1JFUwogICAgdm9sdW1lczoKICAgICAgLSAnbjhuLWRhdGE6L2hvbWUvbm9kZS8ubjhuJwogICAgZGVwZW5kc19vbjoKICAgICAgcG9zdGdyZXNxbDoKICAgICAgICBjb25kaXRpb246IHNlcnZpY2VfaGVhbHRoeQogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQtU0hFTEwKICAgICAgICAtICd3Z2V0IC1xTy0gaHR0cDovL2xvY2FsaG9zdDo1Njc4LycKICAgICAgaW50ZXJ2YWw6IDVzCiAgICAgIHRpbWVvdXQ6IDIwcwogICAgICByZXRyaWVzOiAxMAogIHBvc3RncmVzcWw6CiAgICBpbWFnZTogJ3Bvc3RncmVzOjE2LWFscGluZScKICAgIHZvbHVtZXM6CiAgICAgIC0gJ3Bvc3RncmVzcWwtZGF0YTovdmFyL2xpYi9wb3N0Z3Jlc3FsL2RhdGEnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBQT1NUR1JFU19VU0VSPSRTRVJWSUNFX1VTRVJfUE9TVEdSRVMKICAgICAgLSBQT1NUR1JFU19QQVNTV09SRD0kU0VSVklDRV9QQVNTV09SRF9QT1NUR1JFUwogICAgICAtICdQT1NUR1JFU19EQj0ke1BPU1RHUkVTX0RCOi1uOG59JwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQtU0hFTEwKICAgICAgICAtICdwZ19pc3JlYWR5IC1VICQke1BPU1RHUkVTX1VTRVJ9IC1kICQke1BPU1RHUkVTX0RCfScKICAgICAgaW50ZXJ2YWw6IDVzCiAgICAgIHRpbWVvdXQ6IDIwcwogICAgICByZXRyaWVzOiAxMAo=",
|
||||||
"tags": [
|
"tags": [
|
||||||
"n8n",
|
"n8n",
|
||||||
"workflow",
|
"workflow",
|
||||||
@ -618,7 +618,7 @@
|
|||||||
"n8n": {
|
"n8n": {
|
||||||
"documentation": "https:\/\/n8n.io",
|
"documentation": "https:\/\/n8n.io",
|
||||||
"slogan": "n8n is an extendable workflow automation tool.",
|
"slogan": "n8n is an extendable workflow automation tool.",
|
||||||
"compose": "c2VydmljZXM6CiAgbjhuOgogICAgaW1hZ2U6IGRvY2tlci5uOG4uaW8vbjhuaW8vbjhuCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fTjhOXzU2NzgKICAgICAgLSAnTjhOX0VESVRPUl9CQVNFX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdXRUJIT09LX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdOOE5fSE9TVD0ke1NFUlZJQ0VfVVJMX044Tn0nCiAgICAgIC0gJ0dFTkVSSUNfVElNRVpPTkU9IkV1cm9wZS9CZXJsaW4iJwogICAgICAtICdUWj0iRXVyb3BlL0JlcmxpbiInCiAgICB2b2x1bWVzOgogICAgICAtICduOG4tZGF0YTovaG9tZS9ub2RlLy5uOG4nCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3dnZXQgLXFPLSBodHRwOi8vbG9jYWxob3N0OjU2NzgvJwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogMjBzCiAgICAgIHJldHJpZXM6IDEwCg==",
|
"compose": "c2VydmljZXM6CiAgbjhuOgogICAgaW1hZ2U6IGRvY2tlci5uOG4uaW8vbjhuaW8vbjhuCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fTjhOXzU2NzgKICAgICAgLSAnTjhOX0VESVRPUl9CQVNFX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdXRUJIT09LX1VSTD0ke1NFUlZJQ0VfRlFETl9OOE59JwogICAgICAtICdOOE5fSE9TVD0ke1NFUlZJQ0VfVVJMX044Tn0nCiAgICAgIC0gR0VORVJJQ19USU1FWk9ORT1FdXJvcGUvQmVybGluCiAgICAgIC0gVFo9RXVyb3BlL0JlcmxpbgogICAgdm9sdW1lczoKICAgICAgLSAnbjhuLWRhdGE6L2hvbWUvbm9kZS8ubjhuJwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQtU0hFTEwKICAgICAgICAtICd3Z2V0IC1xTy0gaHR0cDovL2xvY2FsaG9zdDo1Njc4LycKICAgICAgaW50ZXJ2YWw6IDVzCiAgICAgIHRpbWVvdXQ6IDIwcwogICAgICByZXRyaWVzOiAxMAo=",
|
||||||
"tags": [
|
"tags": [
|
||||||
"n8n",
|
"n8n",
|
||||||
"workflow",
|
"workflow",
|
||||||
@ -677,6 +677,25 @@
|
|||||||
"minversion": "0.0.0",
|
"minversion": "0.0.0",
|
||||||
"port": "8080"
|
"port": "8080"
|
||||||
},
|
},
|
||||||
|
"odoo": {
|
||||||
|
"documentation": "https:\/\/www.odoo.com\/",
|
||||||
|
"slogan": "Odoo is a suite of open-source business apps that cover all your company needs.",
|
||||||
|
"compose": "c2VydmljZXM6CiAgb2RvbzoKICAgIGltYWdlOiAnb2RvbzoxNycKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfRlFETl9PRE9PXzgwNjkKICAgICAgLSBIT1NUPXBvc3RncmVzcWwKICAgICAgLSBVU0VSPSRTRVJWSUNFX1VTRVJfUE9TVEdSRVMKICAgICAgLSBQQVNTV09SRD0kU0VSVklDRV9QQVNTV09SRF9QT1NUR1JFUwogICAgdm9sdW1lczoKICAgICAgLSAnb2Rvby13ZWItZGF0YTovdmFyL2xpYi9vZG9vJwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQKICAgICAgICAtIGN1cmwKICAgICAgICAtICctZicKICAgICAgICAtICdodHRwOi8vbG9jYWxob3N0OjgwNjknCiAgICAgIGludGVydmFsOiAycwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMzAKICBwb3N0Z3Jlc3FsOgogICAgaW1hZ2U6ICdwb3N0Z3JlczoxNi1hbHBpbmUnCiAgICB2b2x1bWVzOgogICAgICAtICdwb3N0Z3Jlc3FsLWRhdGE6L3Zhci9saWIvcG9zdGdyZXNxbC9kYXRhJwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gUE9TVEdSRVNfVVNFUj0kU0VSVklDRV9VU0VSX1BPU1RHUkVTCiAgICAgIC0gUE9TVEdSRVNfUEFTU1dPUkQ9JFNFUlZJQ0VfUEFTU1dPUkRfUE9TVEdSRVMKICAgICAgLSBQT1NUR1JFU19EQj1wb3N0Z3JlcwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQtU0hFTEwKICAgICAgICAtICdwZ19pc3JlYWR5IC1VICQke1BPU1RHUkVTX1VTRVJ9IC1kIHBvc3RncmVzJwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogMjBzCiAgICAgIHJldHJpZXM6IDEwCg==",
|
||||||
|
"tags": [
|
||||||
|
"business",
|
||||||
|
"apps",
|
||||||
|
"crm",
|
||||||
|
"ecommerce",
|
||||||
|
"accounting",
|
||||||
|
"inventory",
|
||||||
|
"point of sale",
|
||||||
|
"project management",
|
||||||
|
"open-source"
|
||||||
|
],
|
||||||
|
"logo": "svgs\/odoo.svg",
|
||||||
|
"minversion": "0.0.0",
|
||||||
|
"port": "8069"
|
||||||
|
},
|
||||||
"openblocks": {
|
"openblocks": {
|
||||||
"documentation": "https:\/\/openblocks.dev",
|
"documentation": "https:\/\/openblocks.dev",
|
||||||
"slogan": "OpenBlocks is a self-hosted, open-source, low-code platform for building internal tools.",
|
"slogan": "OpenBlocks is a self-hosted, open-source, low-code platform for building internal tools.",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.266"
|
"version": "4.0.0-beta.269"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user