2023-12-06 16:00:05 +00:00
|
|
|
<form x-data="{ raw: true }" class="custom-modal" wire:submit.prevent='submit'>
|
2023-12-06 14:50:13 +00:00
|
|
|
<div class="flex items-end gap-2">
|
2023-09-30 13:08:40 +00:00
|
|
|
<h1>Docker Compose</h1>
|
|
|
|
<div x-cloak x-show="raw">
|
2023-10-03 09:01:01 +00:00
|
|
|
<x-forms.button class="w-64" @click.prevent="raw = !raw">Show Deployable Compose</x-forms.button>
|
2023-09-30 13:08:40 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="raw === false">
|
|
|
|
<x-forms.button class="w-64" @click.prevent="raw = !raw">Show Source
|
|
|
|
Compose</x-forms.button>
|
|
|
|
</div>
|
2023-10-03 09:01:01 +00:00
|
|
|
</div>
|
2023-12-06 14:50:13 +00:00
|
|
|
<div>Volume names are updated upon save. The service UUID will be added as a prefix to all volumes, to prevent
|
|
|
|
name collision. <br>To see the actual volume names, check the Deployable Compose file, or go to Storage
|
|
|
|
menu.</div>
|
2023-10-03 09:01:01 +00:00
|
|
|
|
2023-12-06 14:50:13 +00:00
|
|
|
<div x-cloak x-show="raw">
|
|
|
|
<x-forms.textarea rows="20" id="service.docker_compose_raw">
|
|
|
|
</x-forms.textarea>
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="raw === false">
|
|
|
|
<x-forms.textarea rows="20" readonly id="service.docker_compose">
|
|
|
|
</x-forms.textarea>
|
|
|
|
</div>
|
2023-12-06 15:59:52 +00:00
|
|
|
<div class="flex justify-end w-full gap-2">
|
|
|
|
<x-forms.button class="w-64" type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button wire:click='closeModal'>
|
|
|
|
Close
|
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
2023-12-06 14:50:13 +00:00
|
|
|
</form>
|