A €30-a-month server: what I self-host with Coolify and what I don't
Almost everything I own runs on a dedicated OVH server that costs about €30 a month: this site, my Git, my automations, my personal projects and a Minecraft server for a group of friends. I run it with Coolify, with Cloudflare in front.
Why have my own server
The simplest reason is money. With a managed service you pay for every app, every database and every worker, and the bill at the end of the month depends on usage. A server has a fixed price, and the tenth app costs the same as the first as long as there is room.
Then there is control. My code lives on my own Forgejo, git.artysan.me, and when I wanted to switch machines I moved without rewriting anything, twice in the same month. And I learn from it: Docker, proxies, caching and backups are things I handle directly here, and they help in client work too, where someone else often runs the infrastructure.
What runs on it
The machine has 4 cores and 8 threads, 32 GB of ECC RAM and two 512 GB NVMe drives in a mirror. Coolify sits on top and runs everything in Docker containers:
- this site, which uses about 20 MB of RAM in production;
- Forgejo, with the CI runners;
- n8n for automations;
- Kedalio, the memory I share across the AI assistants I use;
- Dragon's Lair, the app for my D&D campaign, with its databases;
- Syncthing, which keeps folders in sync between my desktop and my laptop and only receives encrypted data on the server;
- a Minecraft server for my friends.
The real limit is the CPU. Production, CI and Minecraft share four cores, and at the end of October it showed: in one week the CI ran about 46 hours of jobs, 44 of them for Kedalio, and nobody could play while it was running. Now a script checks whether anyone is connected to the game server. If someone is, the CI shrinks to two cores and leaves the other two to Minecraft; when the server is empty, it spreads out again.
How I run it with Coolify
A deploy starts with a push to main. Forgejo calls Coolify through a webhook, and Coolify pulls the code and builds the image from the repo's Dockerfile. For this site the Dockerfile has two stages: the first installs the dependencies and generates the pages, the second keeps only Node, server.mjs and the dist/ folder. There is no node_modules in production.
The same Dockerfile declares a healthcheck: every 30 seconds Node calls /api/health. Coolify picks it up from there and, during a deploy, waits for the new container to report healthy. If it never does, the deploy fails and the old one stays up.
Environment variables live in Coolify and come in two kinds. Runtime variables reach the running container, like the keys for the contact form. Build variables only exist while the image is being built: for the contributions heatmap on the home page I pass two read-only tokens, for GitHub and for Forgejo, and they never reach the final image.
Apps made of several containers taught me something. With a docker compose app, Coolify stops everything on each deploy and then starts it again, and on Dragon's Lair every push left the app down for 42 seconds. Working on it, I brought the gap down to 4 seconds and the deploy from about 40 seconds to about 10.
The same Coolify also drives a second server, the VPS I used before. I reinstalled it and connected it as a remote server in a separate team: whoever works there sees only that team's apps. Claude reads logs, deploy status and variables too, through an MCP server for Coolify that I wrote in Go.
Cloudflare in front
Every domain goes through Cloudflare, which handles DNS, proxying and caching. For this site Cloudflare follows the server's headers, which come in two kinds. Files in assets/ have a hash in their name, so they can stay cached for a year. HTML, on the other hand, is always revalidated by the browser, while Cloudflare keeps it for 5 minutes (s-maxage=300).
That opens a window after every deploy. The new container has assets with new names and no longer has the old ones. For up to 5 minutes, though, Cloudflare can still serve the old HTML, which asks for the previous files: if Cloudflare does not have them cached, the server answers 404. So when a deploy changes the assets, I purge the cache. By hand, for now.
Two moves in one month
At the start of October the server was still on Hetzner. The first move, to an OVH VPS, I did one service at a time: on October 2 and 3 I moved the site, n8n, Syncthing with the same identity, and Forgejo. It worked, but half-stopped copies stayed on the old server for weeks, and I had to check them before I could shut it down.
The second move, from the VPS to the dedicated server, I did differently. The dedicated server arrived on October 15 at half past one in the morning, after days of support tickets. In the hours that followed I installed Docker and Coolify and hot-copied the volumes and the 24 container images, without stopping anything. I moved the images with docker save and docker load instead of rebuilding them, so production kept running exactly the same code. At 13:21 I stopped Docker on the VPS, made the last copy (10 MB of changes) and started everything on the dedicated server; at 13:22 I switched the DNS. About a minute and a half of downtime in total.
This time I moved the whole instance: Coolify's database, its configuration with the keys, the volumes. Apps, variables and webhooks stayed identical, so Forgejo kept calling the same addresses.
Two things went wrong. For a few minutes some Cloudflare nodes answered with a 521 error, because they still had the old address. And a protection on the new server blocked Coolify on its first start, mistaking it for an intruder. The VPS stayed switched off but intact, with the DNS rollback ready. I didn't need it, and the next day I reinstalled it as the second server.
If the server dies tomorrow
The two mirrored drives save me if one of them fails. If the server burns, if I run the wrong command, or if the account gets closed, the RAID does nothing.
The code lives on Forgejo and in a clone on my computers, so it survives. Every day Kedalio sends an encrypted copy off the server to Cloudflare R2, which is free under 10 GB: the copy is about 76 MB, and I tested a restore starting from that copy alone.
The rest is behind. The Dragon's Lair database has a backup scheduled every night at 4, but on the same server, and Coolify's configuration with all its variables has no copy outside yet. A full off-site backup, with a real restore test, is at the top of my list.
Syncing is not a backup either. Syncthing copies mistakes to every machine too, and in my setup it deliberately skips .git folders: in July, before reinstalling my desktop, I found about 37 unpushed commits that existed only there.
What I don't self-host
Email, first of all. A mail server needs a reputation you have to build and constant attention, because an email that lands in spam doesn't tell anyone. I use Gmail. Product emails go through Resend, and server alerts (RAID, drives, failed updates) go to a Telegram bot, so I don't need a mail server for those either.
Then there is client work. The larger projects I take on as a freelancer run on managed services, Supabase for the database and Railway for the services. The data there belongs to people I don't know, and the app has to stay up even when I'm on holiday or sick. A company with people on call handles that better than a freelancer with a single server. It costs more and ties you to a provider, and in those cases the price is worth paying.
The question that decides is this: if it stops at 3 a.m., is it fine for me to fix it the next morning? For Forgejo, for Minecraft or for the D&D app, yes. For a client's management system, no.
How much time it takes
Day-to-day maintenance is close to zero. Security updates install themselves, the Telegram bot tells me if a drive shows signs of failing or the RAID loses a member, and a deploy is a push.
The real time goes into events. October had two big ones, the moves, and early November brought the CI that had to share the machine with Minecraft. Forgejo is on version 17 today, supported until January 28, so it has to move to 18 before then. The next job, though, is the off-site backup: it is the missing piece for the server to die without taking anything important with it.