An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: in services should edit compose file for volumes and envs
Andras Bacsai95d3ebdc2dd8
diff --git a/resources/views/livewire/project/service/configuration.blade.php b/resources/views/livewire/project/service/configuration.blade.phpindex d1ff54a5cf..272de2f4fe 100644--- a/resources/views/livewire/project/service/configuration.blade.php+++ b/resources/views/livewire/project/service/configuration.blade.php@@ -172,7 +172,8 @@<h2>Storages</h2></div><div class="pb-4">Persistent storage to preserve data between deployments.</div>- <span class="dark:text-warning">Please modify storage layout in your Docker Compose file.</span>+ <div class="pb-4 dark:text-warning text-coollabs">If you would like to add a volume, you must add it to+ your compose file (General tab).</div>@foreach ($applications as $application)<livewire:project.service.storage wire:key="application-{{ $application->id }}":resource="$application" />diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.phpindex d2693b983d..42a2b48a76 100644--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php@@ -6,19 +6,21 @@<x-modal-input buttonTitle="+ Add" title="New Environment Variable"><livewire:project.shared.environment-variable.add /></x-modal-input>+ <x-forms.button+ wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button>@endif- <x-forms.button- wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button></div><div>Environment variables (secrets) for this resource.</div>@if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose')<div class="w-64 pt-2"><x-forms.checkbox id="resource.settings.is_env_sorting_enabled" label="Sort alphabetically"- helper="Turn this off if one environment is dependent on an other. It will be sorted by creation order." instantSave></x-forms.checkbox>+ helper="Turn this off if one environment is dependent on an other. It will be sorted by creation order."+ instantSave></x-forms.checkbox></div>@endif@if ($resource->type() === 'service' || $resource?->build_pack === 'dockercompose')<div class="pt-4 dark:text-warning text-coollabs">Hardcoded variables are not shown here.</div>+ <div class="pb-4 dark:text-warning text-coollabs">If you would like to add a variable, you must add it to your compose file (General tab).</div>@endif</div>@if ($view === 'normal')diff --git a/resources/views/livewire/project/shared/storages/show.blade.php b/resources/views/livewire/project/shared/storages/show.blade.phpindex 935d0a43b6..6b429a535c 100644--- a/resources/views/livewire/project/shared/storages/show.blade.php+++ b/resources/views/livewire/project/shared/storages/show.blade.php@@ -2,8 +2,15 @@<form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">@if ($isReadOnly)@if ($isFirst)- <x-forms.input id="storage.name" label="Volume Name" required- helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />+ @if (+ $storage->resource_type === 'App\Models\ServiceApplication' ||+ $storage->resource_type === 'App\Models\ServiceDatabase')+ <x-forms.input id="storage.name" label="Volume 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." />+ @else+ <x-forms.input id="storage.name" label="Volume Name" required+ helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />+ @endif@if ($isService || $startedAt)<x-forms.input id="storage.host_path" readonly helper="Directory on the host system."label="Source Path"@@ -19,7 +26,7 @@</x-forms.button>@else<x-forms.input id="storage.name" required readonly />- <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 />@endif@else