2023-11-20 10:35:31 +00:00
< div >
2024-05-05 16:58:55 +00:00
< div class = " flex flex-col md:w-96 " >
2023-11-20 10:35:31 +00:00
< div class = " flex items-center gap-2 " >
< h2 > Advanced </ h2 >
</ div >
< div > Advanced configuration for your application .</ div >
2024-05-05 16:58:55 +00:00
< div class = " flex flex-col gap-1 pt-4 " >
2024-03-01 10:43:42 +00:00
< h3 > General </ h3 >
2023-11-20 10:35:31 +00:00
@ if ( $application -> git_based ())
< x - forms . checkbox helper = " Automatically deploy new commits based on Git webhooks. " instantSave
2025-08-26 08:27:31 +00:00
id = " isAutoDeployEnabled " label = " Auto Deploy " canGate = " update " : canResource = " $application " />
2023-11-20 10:35:31 +00:00
< x - forms . checkbox
helper = " Allow to automatically deploy Preview Deployments for all opened PR's.<br><br>Closing a PR will delete Preview Deployments. "
2025-08-26 08:27:31 +00:00
instantSave id = " isPreviewDeploymentsEnabled " label = " Preview Deployments " canGate = " update "
: canResource = " $application " />
2025-09-05 12:30:51 +00:00
@ if ( $isPreviewDeploymentsEnabled )
< x - forms . checkbox
helper = " When enabled, anyone can trigger PR deployments. When disabled, only repository members, collaborators, and contributors can trigger PR deployments. "
instantSave id = " isPrDeploymentsPublicEnabled " label = " Allow Public PR Deployments " canGate = " update "
: canResource = " $application " />
@ endif
2024-01-16 14:19:14 +00:00
@ endif
2025-08-26 08:27:31 +00:00
< x - forms . checkbox helper = " Disable Docker build cache on every deployment. " instantSave
id = " disableBuildCache " label = " Disable Build Cache " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
@ if ( $application -> settings -> is_container_label_readonly_enabled )
< x - forms . checkbox
helper = " Your application will be available only on https if your domain starts with https://... "
2025-08-26 08:27:31 +00:00
instantSave id = " isForceHttpsEnabled " label = " Force Https " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
< x - forms . checkbox label = " Enable Gzip Compression "
helper = " You can disable gzip compression if you want. Some services are compressing data by default. In this case, you do not need this. "
2025-08-26 08:27:31 +00:00
instantSave id = " isGzipEnabled " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
< x - forms . checkbox helper = " Strip Prefix is used to remove prefixes from paths. Like /api/ to /api. "
2025-08-26 08:27:31 +00:00
instantSave id = " isStripprefixEnabled " label = " Strip Prefixes " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
@ else
< x - forms . checkbox disabled
helper = " Readonly labels are disabled. You need to set the labels in the labels section. " instantSave
2025-08-26 08:27:31 +00:00
id = " isForceHttpsEnabled " label = " Force Https " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
< x - forms . checkbox label = " Enable Gzip Compression " disabled
helper = " Readonly labels are disabled. You need to set the labels in the labels section. " instantSave
2025-08-26 08:27:31 +00:00
id = " isGzipEnabled " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
< x - forms . checkbox
helper = " Readonly labels are disabled. You need to set the labels in the labels section. " disabled
2025-08-26 08:27:31 +00:00
instantSave id = " isStripprefixEnabled " label = " Strip Prefixes " canGate = " update " : canResource = " $application " />
2025-01-28 12:40:56 +00:00
@ endif
2024-04-25 09:49:34 +00:00
@ if ( $application -> build_pack === 'dockercompose' )
2024-07-18 11:14:07 +00:00
< h3 > Docker Compose </ h3 >
2024-11-05 11:28:33 +00:00
< x - forms . checkbox instantSave id = " isRawComposeDeploymentEnabled " label = " Raw Compose Deployment "
2025-08-26 08:27:31 +00:00
helper = " WARNING: Advanced use cases only. Your docker compose file will be deployed as-is. Nothing is modified by Coolify. You need to configure the proxy parts. More info in the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/compose#raw-docker-compose-deployment'>documentation.</a> "
canGate = " update " : canResource = " $application " />
2024-04-25 09:49:34 +00:00
@ endif
2024-11-05 11:28:33 +00:00
< h3 class = " pt-4 " > Container Names </ h3 >
2024-05-06 09:45:22 +00:00
< x - forms . checkbox
helper = " The deployed container will have the same name ( { { $application->uuid }}). <span class='font-bold dark:text-warning'>You will lose the rolling update feature!</span> "
2025-08-26 08:27:31 +00:00
instantSave id = " isConsistentContainerNameEnabled " label = " Consistent Container Names " canGate = " update "
: canResource = " $application " />
2024-11-05 16:17:34 +00:00
@ if ( $isConsistentContainerNameEnabled === false )
2024-11-05 11:28:33 +00:00
< form class = " flex items-end gap-2 " wire : submit . prevent = 'saveCustomName' >
2024-07-02 08:02:43 +00:00
< x - forms . input
helper = " You can add a custom name for your container.<br><br>The name will be converted to slug format when you save it. <span class='font-bold dark:text-warning'>You will lose the rolling update feature!</span> "
2025-08-26 08:27:31 +00:00
instantSave id = " customInternalName " label = " Custom Container Name " canGate = " update "
: canResource = " $application " />
< x - forms . button canGate = " update " : canResource = " $application " type = " submit " > Save </ x - forms . button >
2024-07-02 08:02:43 +00:00
</ form >
@ endif
2024-04-25 09:49:34 +00:00
@ if ( $application -> build_pack === 'dockercompose' )
2024-11-05 11:28:33 +00:00
< h3 class = " pt-4 " > Network </ h3 >
< x - forms . checkbox instantSave id = " isConnectToDockerNetworkEnabled " label = " Connect To Predefined Network "
2025-08-26 08:27:31 +00:00
helper = " By default, you do not reach the Coolify defined networks.<br>Starting a docker compose based resource will have an internal network. <br>If you connect to a Coolify defined network, you maybe need to use different internal DNS names to connect to a resource.<br><br>For more information, check <a class='underline dark:text-white' target='_blank' href='https://coolify.io/docs/knowledge-base/docker/compose#connect-to-predefined-networks'>this</a>. "
canGate = " update " : canResource = " $application " />
2024-04-25 09:49:34 +00:00
@ endif
2025-03-12 13:46:08 +00:00
< h3 class = " pt-4 " > Logs </ h3 >
< x - forms . checkbox helper = " Drain logs to your configured log drain endpoint in your Server settings. "
2025-08-26 08:27:31 +00:00
instantSave id = " isLogDrainEnabled " label = " Drain Logs " canGate = " update " : canResource = " $application " />
2024-01-16 14:19:14 +00:00
@ if ( $application -> git_based ())
2024-03-01 10:43:42 +00:00
< h3 > Git </ h3 >
2024-11-05 11:28:33 +00:00
< x - forms . checkbox instantSave id = " isGitSubmodulesEnabled " label = " Submodules "
2025-08-26 08:27:31 +00:00
helper = " Allow Git Submodules during build process. " canGate = " update " : canResource = " $application " />
2024-11-05 11:28:33 +00:00
< x - forms . checkbox instantSave id = " isGitLfsEnabled " label = " LFS "
2025-08-26 08:27:31 +00:00
helper = " Allow Git LFS during build process. " canGate = " update " : canResource = " $application " />
2025-08-21 08:16:57 +00:00
< x - forms . checkbox instantSave id = " isGitShallowCloneEnabled " label = " Shallow Clone "
2025-08-26 08:27:31 +00:00
helper = " Use shallow cloning (--depth=1) to speed up deployments by only fetching the latest commit history. This reduces clone time and resource usage, especially for large repositories. "
canGate = " update " : canResource = " $application " />
2023-11-20 10:35:31 +00:00
@ endif
</ div >
2024-11-05 11:28:33 +00:00
</ div >
< form wire : submit = " submit " class = " flex flex-col gap-2 " >
2024-03-19 14:37:16 +00:00
@ if ( $application -> build_pack !== 'dockercompose' )
2024-11-05 11:28:33 +00:00
< div class = " flex gap-2 items-end pt-4 " >
< h3 > GPU </ h3 >
@ if ( $isGpuEnabled )
2025-08-26 08:27:31 +00:00
< x - forms . button canGate = " update " : canResource = " $application " type = " submit " > Save </ x - forms . button >
2024-11-05 11:28:33 +00:00
@ endif
</ div >
2024-03-19 14:37:16 +00:00
@ endif
2024-11-05 11:28:33 +00:00
@ if ( $application -> build_pack !== 'dockercompose' )
< div class = " md:w-96 pb-4 " >
2024-05-05 16:58:55 +00:00
< x - forms . checkbox
helper = " Enable GPU usage for this application. More info <a href='https://docs.docker.com/compose/gpu-support/' class='underline dark:text-white' target='_blank'>here</a>. "
2025-08-26 08:27:31 +00:00
instantSave id = " isGpuEnabled " label = " Enable GPU " canGate = " update " : canResource = " $application " />
2024-11-05 11:28:33 +00:00
</ div >
@ endif
@ if ( $isGpuEnabled )
< div class = " flex flex-col w-full gap-2 " >
< div class = " flex gap-2 items-end " >
2025-08-26 08:27:31 +00:00
< x - forms . input label = " GPU Driver " id = " gpuDriver " canGate = " update " : canResource = " $application " >
</ x - forms . input >
< x - forms . input label = " GPU Count " placeholder = " empty means use all GPUs " id = " gpuCount "
canGate = " update " : canResource = " $application " >
2024-11-05 11:28:33 +00:00
</ x - forms . input >
2024-03-01 10:43:42 +00:00
</ div >
2024-11-05 11:28:33 +00:00
< x - forms . input label = " GPU Device Ids " placeholder = " 0,2 "
helper = " Comma separated list of device ids. More info <a href='https://docs.docker.com/compose/gpu-support/#access-specific-devices' class='underline dark:text-white' target='_blank'>here</a>. "
2025-08-26 08:27:31 +00:00
id = " gpuDeviceIds " canGate = " update " : canResource = " $application " > </ x - forms . input >
< x - forms . textarea rows = " 10 " label = " GPU Options " id = " gpuOptions " canGate = " update "
: canResource = " $application " > </ x - forms . textarea >
2024-11-05 11:28:33 +00:00
</ div >
@ endif
</ form >
2023-11-20 10:35:31 +00:00
</ div >