Self-Hosting Your First Project: What It Actually Involves, Start to Finish
30 September 2026 · Updated 28 November 2026 · 13 min read · by Yang Kai
Self-hosting trades a subscription for setup time and your own uptime. The honest walkthrough: picking a first project, the VPS or home-server decision, Docker basics, backups that exist before you need them, and the maintenance hour nobody budgets for.
Checklist inside: First self-host project checklist: selection criteria, setup order and the weekly maintenance budget
Contents
- What you need before you start
- Step 1: Pick the project by its failure cost
- Step 2: Choose where it runs
- Step 3: Harden the server before any app exists
- Step 4: Install Docker and run the app with Compose
- Step 5: Add the domain and HTTPS
- Step 6: Set up backups before the data matters
- Step 7: Set the update rhythm
- Troubleshooting: the five failures everyone meets
- The maintenance hour, budgeted honestly
- The first month, week by week
- How we researched this
- Conclusion
The subscription is easy to cancel. What stops most people is the blank server: no panel, no support desk, and a honest question about what happens at 2 a.m. when something breaks and the only admin is you.
This guide walks a first self-hosted project end to end — picking the project, choosing the server, hardening it, installing with Docker, adding HTTPS and backups, and setting the maintenance rhythm that keeps it alive. It is sized for someone who has never run a server, and it prices the ongoing hour nobody budgets for.
The steps are ordered the way they are because each one prevents a specific, common disaster. Prices are from providers’ own pages, checked November 2026.
The whole process in five lines: pick a low-stakes project → rent a small VPS → harden it before installing anything → run the app with Docker Compose behind automatic HTTPS → automate a backup and restore it once, today.
What you need before you start
- A candidate project — a tool you already pay for or use weekly. Step 1 has the selection criteria.
- A domain name — roughly $10–15/year. Your tools will live on subdomains like
stats.yourdomain.com. - A way to pay for a VPS — €3.79–6/month covers the first project. The free VPS routes can take the cost to zero for learning, with caps worth reading first.
- An SSH key pair — your computer can generate one in a minute (
ssh-keygen); it replaces password login in Step 3. - One evening — about two to three hours for Steps 1–6, going slowly.
- Basic terminal comfort — copying commands and reading error messages is enough. Every step below says what you should see when it works.
Step 1: Pick the project by its failure cost
The right first project is one whose downtime annoys you and harms nobody: website analytics, an uptime monitor, a personal bookmark tool, an RSS reader, a push service for your own apps. The wrong first project is anything other people depend on — a client’s booking system, a team’s email.
Selection criteria, in order:
- It replaces a paid tool you already use, so the value is proven before you invest the hours.
- It has a Docker Compose file in its repo. One-command deployment is the difference between an evening project and a weekend of dependency archaeology.
- Its data is exportable in an open format, so leaving is possible. Self-hosting that locks you in has just moved the landlord.
- The repo shows maintenance: commits in the last few months, issues answered, a release in the last year.
The full screening method is in read a repo before you install it. The SaaS alternatives map applies the same criteria per category — analytics and monitoring come out as the safest first picks. This site’s own showcase projects, PushKit for web push and MailSuite for email and booking, are listed with their repos on the open-source page.
You should now have: one named project, its Compose file open in a tab, and a note of where its data lives.
Step 2: Choose where it runs
A small VPS is the right default: fixed public IP, no home-network exposure, provider snapshots as a safety net. The two reference points, checked November 2026:
| Option | Spec | Price | Notes |
|---|---|---|---|
| Hetzner CX22 | 2 vCPU, 4 GB RAM, 40 GB disk | €3.79/month ex-VAT | The value benchmark; EU and US locations |
| DigitalOcean Basic Droplet | 1 vCPU, 1 GB RAM, 25 GB disk | $6/month | Friendlier panel and docs for a first server |
| Home server / Raspberry Pi | Whatever you own | $0 plus electricity | Fine for personal tools; unreachable when your home internet is not |
Four gigabytes of RAM carries several small tools comfortably; 1 GB is enough for one light app. As a sizing guide: analytics (Umami) and an uptime monitor (Uptime Kuma) each idle in the low hundreds of megabytes, a mailbox suite like Mailcow wants several gigabytes on its own, and anything running ClickHouse — Plausible Community Edition — should be budgeted at 2 GB before it sees traffic. Size for the heaviest tool you plan, not the first one.
One rule for the first month: one project per server. Isolation is a problem you postpone until you understand what you are isolating from what. Stacking more tools onto the same box comes later, and it is where the economics improve — see what running open source actually costs.
You should now have: a running server, its IP address, and root login details from the provider’s welcome email.
Step 3: Harden the server before any app exists
Thirty minutes, once, before there is anything on the box worth stealing:
- Create a non-root user and give it sudo. Do daily work as that user.
- Add your SSH key for that user, then disable password login in the SSH configuration.
- Enable the firewall with only SSH (port 22) and web ports (80 and 443) open.
- Turn on automatic security updates for the operating system.
Note: do the key step before the password step, and keep your current session open until you have logged in fresh with the key. Locking yourself out of a new server is the traditional first incident; it is avoidable in that order.
You should now have: key-only login as a non-root user, a firewall with three open ports, and updates that apply themselves.
Step 4: Install Docker and run the app with Compose
Nearly every self-hostable project ships a Compose file, which turns the install into: install Docker Engine and the Compose plugin from Docker’s official instructions, clone the project, copy its example .env file and fill in your values, then start it.
Five commands run most of the ecosystem from then on:
docker compose up -d— start everything in the backgrounddocker compose down— stop itdocker compose logs— read what it is sayingdocker compose pull— fetch newer imagesdocker compose exec— run a command inside a container
Watch out: change every default password and secret in the .env file before the first start. Default credentials are the single most common way small self-hosted installs get compromised, and scanners find new servers within hours.
One more habit worth starting on day one: where the Compose file names an image version, keep the version pinned rather than floating on latest. A pinned version means an update happens when you choose it, in your maintenance window, after reading the changelog — not silently the next time the container restarts. Note the running version somewhere you will find it during an incident; Step 7 and the troubleshooting section both depend on knowing it.
You should now have: the app answering on its local port — test it with curl on the server itself before worrying about the public side.
Step 5: Add the domain and HTTPS
Point a subdomain at the server’s IP with a DNS A record. Then put a reverse proxy in front of the app: Caddy is the beginner-friendly choice because it requests and renews HTTPS certificates automatically — your Compose file gains a few lines, and the app appears at https://stats.yourdomain.com with a valid certificate.
A self-hosted tool on a bare IP with no TLS is a tool you will stop using, and for anything holding a login it is worse than unused. Do not skip this step and do not postpone it.
You should now have: the app loading over HTTPS at its subdomain, with the certificate renewing itself.
Step 6: Set up backups before the data matters
Decide what the data actually is. For most tools it is two things: a database volume and an uploads folder. Automate a copy of both to somewhere that is not the same server — object storage is the cheap default (Backblaze B2 charges $6.95 per TB/month with the first 10 GB free, checked November 2026, so a few gigabytes of backups cost cents).
Then the step everyone skips: restore it once, now, while nothing depends on it. A backup you have never restored is a hope, not a backup. The restore is also a rehearsal — the day you need it for real is the wrong day to learn the commands.
Keep the retention simple: a daily backup kept for a week, plus one weekly copy kept for a month, covers both the “I deleted it today” case and the “it corrupted silently last month” case. The second case is the one that matters — corruption and compromise are usually discovered late, and a backup rotation shorter than the discovery delay is a rotation of bad copies.
You should now have: a scheduled off-server backup and one completed test restore.
Step 7: Set the update rhythm
Pick a weekly or monthly window and keep it: pull new images, read the changelog for breaking changes, update, glance at the logs. Fifteen minutes in the window beats a rescue weekend later — skipped updates compound, and six months of them across a few tools turns small upgrades into one archaeological expedition.
This is not theoretical caution. In May 2026, self-hosted Plausible Community Edition users needed the v3.2.1 release to close a critical remote-code-execution flaw; the fix only protected people who actually upgraded. Your rhythm is the security model.
You should now have: a recurring calendar slot and a project that is current.
Troubleshooting: the five failures everyone meets
The container exits immediately. Run docker compose logs for that service. The cause is usually a missing or empty value in .env, or a data folder the container cannot write to. Fix the named thing; do not reinstall.
The HTTPS certificate never arrives. DNS has not propagated yet, the A record points at the wrong IP, or ports 80/443 are closed in the firewall. Check the record resolves to your server first — Caddy cannot issue a certificate for a name that points elsewhere.
The app works on the server but not in your browser. The proxy is not routing the subdomain, or a CDN proxy in front of the domain is interfering. Test the subdomain’s DNS, then the proxy configuration, in that order.
The disk fills up within months. Old Docker images and container logs grow silently. Check with df -h, clear unused images with docker system prune, and set log rotation before it recurs — a full disk takes every service down at once.
An update breaks the app. Roll back to the previous image version (this is why you read the changelog and note version numbers), then restore data from backup if the update changed it. An update you cannot reverse is a migration; treat it with migration-level care.
Login loops or wrong links after HTTPS goes on. The app does not know it is behind a proxy, so it builds plain-HTTP addresses or rejects its own login cookies. Most projects have a setting for this — a base-URL or trusted-proxy option in the same .env file. Set it to the public HTTPS address and restart.
The maintenance hour, budgeted honestly
Steady-state maintenance for one small tool runs about an hour a month: updates, a backup check, a look at disk usage. Incidents are extra and unscheduled — budget emotionally for a couple a year.
If the SaaS you replaced cost $10/month and your time is worth anything at all, self-hosting is not a money-saving move for a single tool. It becomes one across several tools on one server, and it pays in control, privacy and skill regardless. The full cost picture — cash, hours, and the abandonment risk — is in what running open source actually costs.
The first month, week by week
Week one is the build: server hardened, Docker running, the app up behind HTTPS, and the backup job scheduled and test-restored — all before you tell anyone the tool exists.
Week two is the migration: import your real data from the SaaS you are replacing, run both in parallel, and use the self-hosted version as your daily driver while the paid one is still there as a safety net.
Week three is the first update cycle: pull the new image, read the changelog, update, confirm the backup still runs — deliberately practising the maintenance rhythm while the stakes are a personal tool.
Week four is the decision: cancel the subscription if the month went cleanly, or write down exactly what failed if it did not.
Most first projects that die, die in week two — not from technical failure, but because the parallel-run week feels like a chore and gets skipped, leaving the new tool unproven and the old one un-cancelled. The parallel week is the project. Everything else is installation.
If the month goes badly, that is information too, not failure: a first project that teaches you self-hosting is not for your calendar has paid for itself at €3.79 — considerably cheaper than learning it on the fourth project, with three subscriptions already cancelled and a client wondering where their booking page went.
How we researched this
Server prices are from Hetzner’s and DigitalOcean’s published pricing, and backup pricing from Backblaze’s, all checked November 2026. The setup order, failure list and maintenance figures are drawn from the projects’ own documentation and the operating patterns covered across this site’s open-source guides — desk research, presented as a procedure to follow rather than a result we are claiming for you.
FAQ
How much does a first self-hosted project cost in total? About €3.79–6/month for the server, plus $10–15/year for the domain, plus a few cents of object storage for backups — call it $60–90 for the first year in cash. Your setup evening and roughly an hour a month are the real price, priced in the maintenance costs article.
Do I need to know Linux to do this? You need basic terminal comfort: copying commands, editing a text file, reading an error message. The guide assumes no server experience, and each step states what you should see when it works. Deep Linux knowledge becomes necessary only when you leave the Compose path.
Should I use a VPS or a home server? A VPS for anything that must be reachable when you are out — booking pages, monitoring, push. A home server or Raspberry Pi is fine for purely personal tools, and the guide to hosting a static site for free covers the zero-server end of the spectrum.
What is the safest first project to start with? Analytics or an uptime monitor. Both install in an evening, both are useful daily, and if either breaks, nothing else breaks with it. The alternatives map ranks every category by exactly this failure cost.
Can I add more projects to the same server later? Yes — that is the normal pattern and where the savings appear. Each new tool gets its own Compose project and subdomain on the same box. Add them one at a time, after the first project’s update rhythm is a habit, and keep an eye on the shared disk and memory.
Conclusion
A first self-hosted project is an evening of setup and an hour a month of care, in exchange for a cancelled subscription, data on your own disk, and a skill every later project reuses. It is also the cheapest way to find out whether you enjoy running servers at all — a genuine question, and one worth answering on a €3.79 box rather than on infrastructure other people depend on. Pick the project whose failure costs you nothing, follow the order — harden, install, HTTPS, backups, rhythm — and let the parallel-run week make the decision for you. When you are ready to choose the project, start with the category-by-category alternatives map, and price the whole thing honestly with the running-costs breakdown.
Category: Open Source & Self-Hosting · Tags: #open-source #self-hosting #deployment #beginners
Next step: this article is part of Open Source guides, which covers the full topic from first setup to advanced use.