2024-03-25 12:10:05 +00:00
|
|
|
<div class="w-full">
|
2023-08-14 13:22:29 +00:00
|
|
|
@if ($limit_reached)
|
|
|
|
<x-limit-reached name="servers" />
|
|
|
|
@else
|
2024-03-25 12:10:05 +00:00
|
|
|
<form class="flex flex-col w-full gap-2" wire:submit='submit'>
|
|
|
|
<div class="flex w-full gap-2">
|
|
|
|
<x-forms.input autofocus id="name" label="Name" required />
|
2023-08-14 13:22:29 +00:00
|
|
|
<x-forms.input id="description" label="Description" />
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-2">
|
2023-11-17 11:38:47 +00:00
|
|
|
<x-forms.input id="ip" label="IP Address/Domain" required
|
2023-11-03 09:57:58 +00:00
|
|
|
helper="An IP Address (127.0.0.1) or domain (example.com)." />
|
2024-04-17 09:41:46 +00:00
|
|
|
<x-forms.input type="number" id="port" label="Port" required />
|
|
|
|
</div>
|
|
|
|
<x-forms.input id="user" label="User" required />
|
|
|
|
<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>
|
2023-08-14 13:22:29 +00:00
|
|
|
<x-forms.select label="Private Key" id="private_key_id">
|
|
|
|
<option disabled>Select a private key</option>
|
|
|
|
@foreach ($private_keys as $key)
|
|
|
|
@if ($loop->first)
|
|
|
|
<option selected value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@else
|
|
|
|
<option value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</x-forms.select>
|
2024-03-25 12:10:05 +00:00
|
|
|
<div class="">
|
2024-01-16 14:19:14 +00:00
|
|
|
<x-forms.checkbox instantSave type="checkbox" id="is_build_server" label="Use it as a build server?" />
|
|
|
|
</div>
|
2024-03-25 12:10:05 +00:00
|
|
|
<div class="">
|
2024-03-20 11:54:06 +00:00
|
|
|
<h3 class="pt-6">Swarm <span class="text-xs text-neutral-500">(experimental)</span></h3>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="pb-4">Read the docs <a class='dark:text-white'
|
2024-04-16 18:57:54 +00:00
|
|
|
href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>.</div>
|
2024-01-16 14:19:14 +00:00
|
|
|
@if ($is_swarm_worker || $is_build_server)
|
2023-12-18 13:01:25 +00:00
|
|
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
|
2024-03-27 10:07:29 +00:00
|
|
|
helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>."
|
2023-12-19 12:47:12 +00:00
|
|
|
label="Is it a Swarm Manager?" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@else
|
2023-12-19 12:47:12 +00:00
|
|
|
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_manager"
|
2024-03-27 10:07:29 +00:00
|
|
|
helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>."
|
2023-12-19 12:47:12 +00:00
|
|
|
label="Is it a Swarm Manager?" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@endif
|
2024-04-16 18:57:54 +00:00
|
|
|
@if ($is_swarm_manager || $is_build_server)
|
2023-12-18 13:01:25 +00:00
|
|
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"
|
2024-03-27 10:07:29 +00:00
|
|
|
helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>."
|
2023-12-19 12:47:12 +00:00
|
|
|
label="Is it a Swarm Worker?" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@else
|
2023-12-19 12:47:12 +00:00
|
|
|
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_worker"
|
2024-03-27 10:07:29 +00:00
|
|
|
helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>."
|
2023-12-19 12:47:12 +00:00
|
|
|
label="Is it a Swarm Worker?" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@endif
|
2023-12-20 09:19:21 +00:00
|
|
|
@if ($is_swarm_worker && count($swarm_managers) > 0)
|
|
|
|
<div class="py-4">
|
|
|
|
<x-forms.select label="Select a Swarm Cluster" id="selected_swarm_cluster" required>
|
|
|
|
@foreach ($swarm_managers as $server)
|
|
|
|
@if ($loop->first)
|
|
|
|
<option selected value="{{ $server->id }}">{{ $server->name }}</option>
|
|
|
|
@else
|
|
|
|
<option value="{{ $server->id }}">{{ $server->name }}</option>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</x-forms.select>
|
|
|
|
</div>
|
2023-12-19 12:47:12 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
2023-08-14 13:22:29 +00:00
|
|
|
<x-forms.button type="submit">
|
2024-01-17 14:41:38 +00:00
|
|
|
Continue
|
2023-08-14 13:22:29 +00:00
|
|
|
</x-forms.button>
|
|
|
|
</form>
|
|
|
|
@endif
|
2023-04-26 13:38:50 +00:00
|
|
|
</div>
|