@@ -3206,6 +3206,15 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
|
|||||||
$use_network_mode = data_get($service, 'network_mode') !== null;
|
$use_network_mode = data_get($service, 'network_mode') !== null;
|
||||||
$depends_on = collect(data_get($service, 'depends_on', []));
|
$depends_on = collect(data_get($service, 'depends_on', []));
|
||||||
$labels = collect(data_get($service, 'labels', []));
|
$labels = collect(data_get($service, 'labels', []));
|
||||||
|
if ($labels->count() > 0) {
|
||||||
|
if (isAssociativeArray($labels)) {
|
||||||
|
$newLabels = collect([]);
|
||||||
|
$labels->each(function ($value, $key) use ($newLabels) {
|
||||||
|
$newLabels->push("$key=$value");
|
||||||
|
});
|
||||||
|
$labels = $newLabels;
|
||||||
|
}
|
||||||
|
}
|
||||||
$environment = collect(data_get($service, 'environment', []));
|
$environment = collect(data_get($service, 'environment', []));
|
||||||
$ports = collect(data_get($service, 'ports', []));
|
$ports = collect(data_get($service, 'ports', []));
|
||||||
$buildArgs = collect(data_get($service, 'build.args', []));
|
$buildArgs = collect(data_get($service, 'build.args', []));
|
||||||
@@ -3819,6 +3828,7 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
|
|||||||
return $volume;
|
return $volume;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ray($serviceLabels);
|
||||||
$payload = collect($service)->merge([
|
$payload = collect($service)->merge([
|
||||||
'container_name' => $containerName,
|
'container_name' => $containerName,
|
||||||
'restart' => $restart->value(),
|
'restart' => $restart->value(),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'coolify' => [
|
'coolify' => [
|
||||||
'version' => '4.0.0-beta.408',
|
'version' => '4.0.0-beta.409',
|
||||||
'helper_version' => '1.0.8',
|
'helper_version' => '1.0.8',
|
||||||
'realtime_version' => '1.0.7',
|
'realtime_version' => '1.0.7',
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.408"
|
"version": "4.0.0-beta.409"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.410"
|
"version": "4.0.0-beta.410"
|
||||||
|
|||||||
@@ -26,9 +26,11 @@
|
|||||||
<div class="pb-4">Code source of your application.</div>
|
<div class="pb-4">Code source of your application.</div>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
|
@if (!$privateKeyId)
|
||||||
<div>Currently connected source: <span
|
<div>Currently connected source: <span
|
||||||
class="font-bold text-warning">{{ $application->source->name }}</span>
|
class="font-bold text-warning">{{ data_get($application, 'source.name', 'No source connected') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<x-forms.input placeholder="coollabsio/coolify-example" id="gitRepository" label="Repository" />
|
<x-forms.input placeholder="coollabsio/coolify-example" id="gitRepository" label="Repository" />
|
||||||
<x-forms.input placeholder="main" id="gitBranch" label="Branch" />
|
<x-forms.input placeholder="main" id="gitBranch" label="Branch" />
|
||||||
@@ -38,6 +40,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if ($privateKeyId)
|
||||||
|
<h3 class="pt-4">Deploy Key</h3>
|
||||||
|
<div class="py-2 pt-4">Currently attached Private Key: <span
|
||||||
|
class="dark:text-warning">{{ $privateKeyName }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h4 class="py-2 ">Select another Private Key</h4>
|
||||||
|
<div class="flex flex-wrap gap-2">
|
||||||
|
@foreach ($privateKeys as $key)
|
||||||
|
<x-forms.button wire:click="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
|
||||||
|
</x-forms.button>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
<div class="pt-4">
|
<div class="pt-4">
|
||||||
<h3 class="pb-2">Change Git Source</h3>
|
<h3 class="pb-2">Change Git Source</h3>
|
||||||
<div class="grid grid-cols-1 gap-2">
|
<div class="grid grid-cols-1 gap-2">
|
||||||
@@ -69,20 +85,6 @@
|
|||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($privateKeyId)
|
|
||||||
<h3 class="pt-4">Deploy Key</h3>
|
|
||||||
<div class="py-2 pt-4">Currently attached Private Key: <span
|
|
||||||
class="dark:text-warning">{{ $privateKeyName }}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4 class="py-2 ">Select another Private Key</h4>
|
|
||||||
<div class="flex flex-wrap gap-2">
|
|
||||||
@foreach ($privateKeys as $key)
|
|
||||||
<x-forms.button wire:click="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
|
|
||||||
</x-forms.button>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,6 +13,23 @@
|
|||||||
helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/redis'>https://hub.docker.com/_/redis</a>" />
|
helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/redis'>https://hub.docker.com/_/redis</a>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
|
@if ($database->started_at)
|
||||||
|
<div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here,
|
||||||
|
otherwise
|
||||||
|
automations won't work. <br>Changing them here will not change the values in the database.
|
||||||
|
</div>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
@if (version_compare($redis_version, '6.0', '>='))
|
||||||
|
<x-forms.input label="Username" id="redis_username"
|
||||||
|
helper="You can only change this in the database." />
|
||||||
|
@endif
|
||||||
|
<x-forms.input label="Password" id="redis_password" type="password"
|
||||||
|
helper="You can only change this in the database." />
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="pt-2 dark:text-warning">You can only change the username and password in the database after
|
||||||
|
initial start.</div>
|
||||||
|
<div class="flex gap-2">
|
||||||
@if (version_compare($redis_version, '6.0', '>='))
|
@if (version_compare($redis_version, '6.0', '>='))
|
||||||
<x-forms.input label="Username" id="redis_username" required
|
<x-forms.input label="Username" id="redis_username" required
|
||||||
helper="You can change the Redis Username in the input field below or by editing the value of the REDIS_USERNAME environment variable.
|
helper="You can change the Redis Username in the input field below or by editing the value of the REDIS_USERNAME environment variable.
|
||||||
@@ -30,6 +47,8 @@
|
|||||||
Note: If the environment variable REDIS_PASSWORD is set as a shared variable (environment, project, or team-based), this input field will become read-only."
|
Note: If the environment variable REDIS_PASSWORD is set as a shared variable (environment, project, or team-based), this input field will become read-only."
|
||||||
:disabled="$this->isSharedVariable('REDIS_PASSWORD')" />
|
:disabled="$this->isSharedVariable('REDIS_PASSWORD')" />
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
<x-forms.input
|
<x-forms.input
|
||||||
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>"
|
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>"
|
||||||
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.408"
|
"version": "4.0.0-beta.409"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.410"
|
"version": "4.0.0-beta.410"
|
||||||
|
|||||||
Reference in New Issue
Block a user