Coolify is the deployment layer behind a fleet of apps we run on self-hosted servers: storefronts, internal tools, a queue-driven SaaS and several smaller services. This post writes down what an operator needs to know: the build limits, the deploy API, the remote-build experiments and the failures behind each rule. The mechanics of a memory cap and a remote builder are in capping Docker build memory with cgroup v2 and the remote BuildKit server post, so here they appear only as what the platform itself does and does not let you set. It sits beside the Cloudflare Workers migration as the other half of the hosting story: static sites on Workers, stateful apps on Coolify.
What kind of platform is it?
It is a self-hostable platform that deploys applications, databases and services onto your own servers. Its documentation describes running any app Docker can package, any database with a Docker image, and more than 300 one-click service templates, managed through an API, a CLI or MCP (Coolify documentation).
In practice it replaces the manual sequence of SSH, git pull, docker compose up and a reverse-proxy edit. You register a server, point an application at a Git repository, and Coolify builds the image, runs the container, routes the domain and renews the certificate. The operator still owns the server underneath: its disk, memory, patches and backups.
How many apps does a Coolify instance really run?
As of November 2026, one instance we audited (API listing on 2026-11-10) managed 18 applications. Seventeen cloned from a private Git forge over SSH; the other did not use that remote. Two applications, the web and worker halves of one product, had a registry image name set because they built remotely (from the inventory query).
The count matters because it is the unit for capacity planning. Eighteen apps on one host means eighteen build profiles competing for the same CPU and memory whenever a push lands, plus the running containers they are replacing. That is the real constraint, and it is why the rest of this post is about builds.
Why do builds, not runtime, cause the trouble?
Because a build is a short burst of heavy work on the same machine that serves traffic. Running containers were steady; builds were the events that moved the memory graph. A dependency install, a TypeScript compile or a static-site generation step can use far more memory than the app needs once it runs.
The Coolify host in question had 16 CPU cores and 48 GB of RAM with about 6 GB in use when we checked on 2026-10-28, which ruled out plain resource starvation as the cause of 11 to 14 minute deploys for the larger sites. Build time came from the work itself: package installs, compilation and static generation inside the Docker build (from the host inspection). A host with that much headroom can still be taken down by a single build that allocates tens of gigabytes, which is the incident the cgroup post describes.
Representative build durations from the deployment logs, measured on that host:
| Application type | Build and deploy time | Source |
|---|---|---|
| Large static-generation site | 11 to 14 minutes | Host inspection, 2026-10-28 |
| A queue-driven product with browser-test dependencies | 7 m 25 s deploy | Deployment log, 2026-11-20 |
| A small app | 69 seconds | Deployment log, 2026-11-10 |
How do you limit builds in Coolify?
Set two things: how many builds run at once, and how much memory a build may take. Coolify exposes the first as a server setting and the second not at all, so memory has to be capped on the host.
On the production box the settings record on 2026-11-20 shows concurrent_builds at 2 and a dynamic timeout of 3600 seconds. We changed it to 1 and installed a host-level cap on build memory. The first trial set 12 GB maximum with an 11 GB soft limit; that same morning the cap was reworked into a 24 GB hard limit with no soft throttle, because a soft limit made a build hang instead of fail (from the server settings record; the mechanics are in the cgroup post). We then confirmed a running app container’s memory limit was still unset, so the cap applied to builds and not to the apps. That distinction matters: a limit that also constrains running containers turns a build safeguard into an outage.
The setting was not where we expected. The database had no general settings table holding it, so the value turned out to live in the per-server settings, which we found by querying the database (from the host inspection, 2026-10-28 and 2026-11-20). Do not assume a value; read it per server.
How does the Coolify API deploy an app?
You send an authenticated request to /api/v1/deploy with the application UUID. The call is POST: a GET now returns a message that the endpoint has changed, which is a trap for any older script (from the delegation playbook’s troubleshooting notes).
Authentication uses bearer tokens. Each token is created for a user and an active team, with chosen permissions, scope and expiry, and a token cannot have more access than its owner. A token limited to selected projects gets a 403 from team-level endpoints, and a self-hosted instance needs API access enabled by an administrator first (Coolify API authorization).
curl -sS -X POST \
-H "Authorization: Bearer $COOLIFY_TOKEN" \
"$COOLIFY_API/deploy?uuid=$APP_UUID"
Two operating patterns came out of that:
- One command per deploy, one command per check. A deploy script posted the build request, and a separate status script polled the deployment and printed the tail of the log. Splitting them let a status check survive a dropped connection without re-triggering a build.
- Deploy several services in one call. A workflow for a two-service product called the same endpoint with both application UUIDs, so web and worker rolled out together, and a commit-message flag told it to build on Coolify itself instead of the remote runner (from the workflow definition).
Keep the token out of the repository and hand it to scripts through the environment. The value is created and pasted by the owner; a lead only needs to confirm that it is set, never to read it.
Can Coolify build on a remote server?
Yes, for standalone applications. A Coolify build server is a machine configured with the build role. It builds the image, pushes it to a container registry, and the deployment server pulls it. It needs Docker, a registry login, and the same CPU architecture as the deployment server, and it cannot host deployments (Coolify build server).
The limits are the part to read before designing around it. Docker Compose and Docker Image applications cannot use a build server, and each application must have its Docker Image field set before Coolify will deploy with one (Coolify build server).
We tested two shapes of offload in November 2026:
| Approach | What it does | Measured result |
|---|---|---|
| Coolify’s native build server | Builds on a dedicated machine, pushes to a registry | Limited to non-Compose apps |
| CI-runner build, then Coolify pulls the image | A Git forge action builds on a Linux build box, pushes an image, and Coolify deploys it | 72 s build, rollout done at 176 s |
The second shape worked on a storefront pilot. A remote runner built it in 72 seconds, and Coolify finished the container rollout at 176 seconds. The figures are from the pilot logs of 2026-11-10. The remote BuildKit post has the measured compose-build comparison with its cache setup.
Why do Docker Compose apps rebuild everything?
Because Coolify passes --pull --no-cache to the compose build. Reading the deployment job’s source on the host showed the compose build command hardcoded with both flags, so Compose applications never reuse cached layers on a Coolify deploy (from the source inspection, 2026-11-10).
That one fact reframed the build problem. Capping and offloading help, but a Compose app pays the full build cost on every deploy no matter what. It is also a reason to prefer a single-image application where you can, because a standalone app can use a build server and its layer cache.
What happens when Git is not on the public internet?
Deploys depend on the Git remote, so moving the remote moves a hidden dependency. Our private forge was reached over SSH by seventeen applications. When its web address changed to a Tailscale HTTPS name, the SSH domain was deliberately left on the original LAN address so that no clone URL changed, which kept every deploy working (from the forge configuration notes, 2026-11-10).
Moving a remote also moves the push-to-deploy trigger, so check that path end to end after any change, not just that git push succeeds.
For the network side, the Tunnel and Tailscale comparison covers why the deploy API stayed on the private overlay.
What does a deploy restart?
A deploy of a multi-container app restarts the whole stack, backend included. For the personalized storefronts, a single store deploy restarted its backend, so we deferred deploys while a reviewer was running live API checks against that backend (from the session notes, 2026-10-31).
The practical rule: schedule deploys of an app away from anyone testing it, and have the deploy script confirm health afterward. A finished deployment is not a healthy app. After one rollout the useful check was a request to a route that had been failing, which returned the expected 404, plus a health endpoint reporting database, queue and worker status, and a clean scan of the last 200 container log lines (from the post-deploy checks, 2026-11-11).
How do you retire an app or a builder?
You write the decision down with its date, because a retired machine leaves no trace in the dashboard. If you add a builder, a registry and a patch schedule, you also add the work of removing them; the builder described in the BuildKit post is one example.
For applications, the same applies in reverse. Before deleting one, check what still points at it: the DNS record, the Git webhook, the tunnel route and any status-poller entry in a script. Coolify will not tell you about the last two.
What broke and what we changed
Two concurrent builds could fill the host. The default allowed two at once, and two heavy static-generation builds together were enough to threaten the machine. We reduced concurrency to one and added the host memory cap (see the cgroup post for how it later became a 24 GB hard limit), leaving running containers uncapped (from the server settings record, 2026-11-20).
The status poller died on a non-JSON answer. When the laptop changed subnets, the deploy host’s LAN address timed out and the poller crashed parsing the error. The deploy had actually finished. The script now keeps both addresses and tolerates non-JSON responses (from the playbook notes).
The deploy call used the wrong HTTP method. The deploy endpoint answered a GET with a message that it had changed. Scripts were updated to POST, and the check went into the playbook so nobody rediscovers it.
A revert was needed before auto-deploy fired. A build-and-deploy workflow was committed to a repository whose Coolify app had auto-deploy on, and the push would have triggered a local rebuild on the Coolify host. We disabled auto-deploy first, pushed the revert, and restored the original application settings, then compared the settings to the pre-rollout JSON (from the pilot notes, 2026-11-10). Treat auto-deploy as a switch you flip before changing the workflow, not after.
Build arguments land in a file on disk. Coolify writes all build arguments to a build-time environment file in the build directory and sources it before the Docker build runs (from the build-log inspection, 2026-11-10). Anything passed as a build argument is therefore available to the build and can end up in image layers, so secrets that must not enter an image should stay out of build arguments.
Related
- Capping Docker build memory with cgroup v2
- A remote BuildKit server cut compose builds by 62%
- Cloudflare Tunnel vs Tailscale: which to use for internal apps
- Moving 15 WordPress sites to Cloudflare Workers
- Infrastructure and edge work
Frequently asked questions
What is Coolify?
Coolify is a self-hostable platform for deploying applications, databases and one-click services onto servers you control, managed through a web interface, an API, a CLI or MCP. It builds from Git or runs images, handles domains and certificates, and gives a team a PaaS-style workflow without a hosted vendor. You supply the servers and are responsible for them.
How do you deploy with the Coolify API?
Send an authenticated POST to the deploy endpoint under /api/v1, passing the application UUID, with a bearer token in the Authorization header. The endpoint used to accept GET and now answers a GET with a message that it has changed. Create the token in the dashboard with only the permissions and project scope the caller needs.
How many builds can Coolify run at once?
It is a server setting. We saw two concurrent builds on one instance and ten on another. On the production host we reduced it from two to one on 2026-11-20, together with a per-step build memory cap, because two heavy builds at once could take the host down. Look at the server's settings page before assuming a value.
Can Coolify build on a separate server?
Yes, with limits. A build server needs Docker, a registry that Coolify can push to, and the same CPU architecture as the deployment server, and it cannot host deployments. It does not support Docker Compose or Docker Image applications, which always build on the deployment server. Each standalone app must have its image name set first.
Is Coolify production-ready?
It ran production workloads here, with caveats we had to engineer around: builds share the host with running apps, Compose builds ignore the layer cache, deploys can restart a whole stack, and nothing replaces monitoring. Treat it as a deployment layer you operate, with a patching and capacity plan, not as a managed service.
