Skip to content

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.

Merge branch 'next' into docker-network-aliases

Piotr Wójcik0baeaa982b5c
diff --cc resources/views/livewire/project/application/general.blade.php
index 4c4e035776,da806f916a..7c291fea55
--- a/resources/views/livewire/project/application/general.blade.php
+++ b/resources/views/livewire/project/application/general.blade.php
@@@ -307,16 -338,19 +338,24 @@@
<x-forms.input placeholder="3000:3000" id="application.ports_mappings" label="Ports Mappings"
helper="A comma separated list of ports you would like to map to the host system. Useful when you do not want to use domains.<br><br><span class='inline-block font-bold dark:text-warning'>Example:</span><br>3000:3000,3002:3002<br><br>Rolling update is not supported if you have a port mapped to the host." />
@endif
+ @if (!$application->destination->server->isSwarm())
+ <x-forms.input id="application.network_aliases" label="Network Aliases"
+ helper="A comma separated list of custom network aliases you would like to add for container in Docker network.<br><br><span class='inline-block font-bold dark:text-warning'>Example:</span><br>api.internal,api.local"
+ wire:model="application.network_aliases" />
+ @endif
</div>
- <x-forms.textarea label="Container Labels" rows="15" id="customLabels"
- monacoEditorLanguage="ini" useMonacoEditor></x-forms.textarea>
+ @if ($application->settings->is_container_label_readonly_enabled)
+ <x-forms.textarea readonly disabled label="Container Labels" rows="15" id="customLabels"
+ monacoEditorLanguage="ini" useMonacoEditor></x-forms.textarea>
+ @else
+ <x-forms.textarea label="Container Labels" rows="15" id="customLabels"
+ monacoEditorLanguage="ini" useMonacoEditor></x-forms.textarea>
+ @endif
<div class="w-96">
+ <x-forms.checkbox label="Readonly labels"
+ helper="Labels are readonly by default. Readonly means that edits you do to the labels could be lost and Coolify will autogenrate the labels for you. If you want to edit the labels directly, disable this option. <br><br>Be careful, it could break the proxy configuration after you restart the container as Coolify will now NOT autogenrate the labels for you (ofc you can always reset the labels to the coolify defaults manually)."
+ id="application.settings.is_container_label_readonly_enabled" instantSave></x-forms.checkbox>
<x-forms.checkbox label="Escape special characters in labels?"
helper="By default, $ (and other chars) is escaped. So if you write $ in the labels, it will be saved as $$.<br><br>If you want to use env variables inside the labels, turn this off."
id="application.settings.is_container_label_escape_enabled" instantSave></x-forms.checkbox>