2026-05-31 19:50:10 +00:00
< form wire : submit = 'submit' class = " flex flex-col " >
< div class = " flex items-center gap-2 " >
2026-06-01 04:55:30 +00:00
< h2 > Healthcheck </ h2 >
2026-05-31 19:50:10 +00:00
< x - forms . button canGate = " update " : canResource = " $database " type = " submit " > Save </ x - forms . button >
2026-06-01 06:55:03 +00:00
@ if ( ! $healthCheckEnabled )
< x - modal - confirmation title = " Confirm Healthcheck Enable? " buttonTitle = " Enable Healthcheck "
submitAction = " toggleHealthcheck " : actions = " ['Enable healthcheck for this database.'] "
warningMessage = " If the health check fails, this database will be marked unhealthy. Please review the <a href='https://coolify.io/docs/knowledge-base/health-checks' target='_blank' class='underline text-white'>Health Checks</a> guide before proceeding! "
step2ButtonText = " Enable Healthcheck " : confirmWithText = " false " : confirmWithPassword = " false "
isHighlightedButton >
</ x - modal - confirmation >
@ else
< x - forms . button canGate = " update " : canResource = " $database " wire : click = " toggleHealthcheck " > Disable Healthcheck </ x - forms . button >
@ endif
2026-05-31 19:50:10 +00:00
</ div >
2026-06-01 06:55:03 +00:00
< div class = " mt-1 pb-4 " > Define how your resource ' s health should be checked .</ div >
2026-05-31 19:50:10 +00:00
< div class = " flex flex-col gap-4 " >
2026-06-01 06:55:03 +00:00
@ if ( ! $healthCheckEnabled )
< x - callout type = " warning " title = " Healthcheck disabled " >
< p > Docker runs no healthcheck probe for this database and Coolify can no longer report a healthy / unhealthy state .</ p >
</ x - callout >
2026-05-31 19:50:10 +00:00
@ endif
2026-06-01 06:55:03 +00:00
< div class = " flex gap-2 " >
< x - forms . input canGate = " update " : canResource = " $database " min = " 1 " type = " number " id = " healthCheckInterval "
placeholder = " 15 " label = " Interval (s) " required />
< x - forms . input canGate = " update " : canResource = " $database " min = " 1 " type = " number " id = " healthCheckTimeout "
placeholder = " 5 " label = " Timeout (s) " required />
< x - forms . input canGate = " update " : canResource = " $database " min = " 1 " type = " number " id = " healthCheckRetries "
placeholder = " 5 " label = " Retries " required />
< x - forms . input canGate = " update " : canResource = " $database " min = " 0 " type = " number "
id = " healthCheckStartPeriod " placeholder = " 5 " label = " Start Period (s) " required />
</ div >
2026-05-31 19:50:10 +00:00
</ div >
</ form >