Health checks
Coolify configures a Docker health check for each standalone database. The engine-specific probe runs inside the database container and reports whether the configured check succeeds.
Open the database resource, then select Healthcheck.
Configure the check
| Setting | Default | Accepted value |
|---|---|---|
| Interval (seconds) | 15 | Whole number 1 or greater. |
| Timeout (seconds) | 5 | Whole number 1 or greater. |
| Retries | 5 | Whole number 1 or greater. |
| Start period (seconds) | 5 | Whole number 0 or greater. |
The database image supplies the probe command. The settings above control when Docker runs it and when Docker marks the container unhealthy; they do not change the database's authentication, storage, or connection URL.
Enable or disable the check
The health check is enabled by default. Select Disable healthcheck only when the image or custom configuration cannot support the generated probe. When disabled, Docker runs no health probe and Coolify cannot report a healthy or unhealthy state for the database.
Select Save changes, then restart the database to apply the generated health-check configuration.
Verify a health check
After the database restarts:
- Open the database status and confirm it reports healthy.
- Open Runtime Logs and check that the database completed startup.
- Connect with the Internal URL from an application on the same destination network.
A passing health check confirms only that the configured probe passed. It does not validate application queries, backup integrity, replication, or available disk space.
Set Start period (seconds) high enough for the database to initialize on the selected server and storage. A short start period can mark a slow first startup unhealthy even when the database would become ready later.
MongoDB health checks ping the database, so a running container whose database cannot respond is no longer treated as healthy automatically. Review container logs when the check fails.
How the probe connects
Coolify builds the probe from the engine and its settings:
- Custom port: when the custom configuration of a PostgreSQL, MongoDB, Redis, Valkey, or KeyDB database sets a
port, the probe connects to the lastportin that configuration. - Redis and Valkey: the probe runs
redis-clidirectly, without a shell, so it also works with images that have no shell. It pings with the database password. On Redis 6.2 and later and on Valkey, it fails on error replies such asNOAUTHandLOADING. - Redis, Valkey, and KeyDB with their own password: when Custom Redis / Valkey configuration or Custom KeyDB configuration sets
requirepass, Coolify does not know that password, so the probe only requires that the database replies. - Dragonfly with SSL: the probe connects over TLS with the certificate of the database.
- Supabase PostgreSQL: the probe connects over
127.0.0.1instead of the socket.
Restart the database after changing its custom configuration, so the probe uses the new values.
