Coolify on a server I can turn off

A couple of years into the job, I put Coolify on a computer I own. The deploy button was the easy part. The quiet failures were the lesson.

Software EngineeringSelf-hostingCoolify

The computer is in the room

A couple of years into writing software, almost everything I had shipped lived on a machine I had never seen. A push went out. A URL came back. The host was a row in someone else's dashboard.

I set Coolify up on a server I own. Ubuntu, Docker, and Coolify's proxy in front of the containers. An app deploys from git. The database and the cache sit next to it. I can walk over to the box and turn it off, and I know exactly where the site went.

That still feels like a lot for two years in. Not because the install is magic. Because the failure stops being a ticket and starts being a process on a computer I am responsible for.

A green check that deletes the database

The virtual CPU was a generic model. It had no AVX. Current MongoDB refused to start. An older image, 4.4, would.

Coolify's health check for MongoDB calls mongosh. That shell did not exist in 4.4, so the check failed. Coolify treated the database as unhealthy, stopped the container, and a cleanup job then pruned the image. The panel had not crashed. It had quietly thrown the database away.

The fix was to turn that health check off. The habit I kept is smaller: read what a check actually runs before trusting the status light.

Settings that save and do nothing

For an image deploy, and for a static build, Coolify will take a build command and a start command and never apply them. The API stores the value. The container starts with the command baked into the image.

Changing what a worker ran meant a two-line Dockerfile whose only job was a different CMD. Then docker inspect on the container, to see the command that actually started. The setting screen was not the source of truth.

Coolify also builds with docker build --no-cache --pull. An image I had built on my laptop was never going to be the image it ran. The laptop and the server are different architectures anyway. The build has to happen on the server, and the server has to be able to pull the result from a registry or from git.

A secret is read once

The secret store is loaded when the container boots. Editing a value and refreshing the app does nothing. The running process still has the old one. I chased the wrong bug more than once because of that. A restart is the moment the new value exists.

The same kind of quiet conflict showed up on a port. The proxy wanted 8080. Something else on the machine already had it, so the proxy never came up until that binding was removed. The error was not in the app. It was two programs on one box wanting the same door.

Why it felt like a lot

I am not running a hosting company. I had been doing this work for about two years, and I was used to renting the computer. Standing the proxy up, losing a database to a health check, and finding a saved setting that never ran — that was the first time the server was mine to break.

It is also the first time "I host this" meant a machine I can point at. The cloud is still the right place for plenty of things. A host I can turn off is a different kind of understanding, and I did not have it until the switch was in the room.