Self host everything. But why?
To use Github and GitHub Actions, to “just push to DockerHub” is so natural, that every team do those. And that’s the right call for most of the teams. It’s fast, it works, and you’re shipping features instead of maintaining tooling.
For us, “just use it” stopped being an option at the moment we put sovereignty on the table.
What we actually built
Over the past year, we migrated a production stack off third-party platforms. Here’s what the before and after looks like:
| Concern | Before | After |
|---|---|---|
| Source control | GitHub | Self-hosted Gitea |
| CI/CD | GitHub Actions | Gitea Actions with self-hosted runners |
| Container registry | DockerHub | Self-hosted Zot OCI registry |
| Monitoring | ElasticSearch + Kibana (self-hosted, rudimentary) | Prometheus + Grafana (self-hosted) |
| Log aggregation | ElasticSearch (self-hosted) | Vector + Loki + Grafana |
| DNS | Squarespace | DigitalOcean (EU data center) |
This isn’t a toy setup. It runs a production e-commerce platform serving real customers, handling payments, shipping integrations, and transactional email.
Why we did it
Three reasons, in order of how they actually motivated us:
1. Operational understanding. When your CI breaks on GitHub Actions, you read their status page and wait. When it breaks on your own runner, you SSH in and fix it. One of these teaches you something. After a year of running our own infrastructure, we understand our deployment pipeline at a level that simply isn’t possible when it’s abstracted away.
2. Sovereignty. Companies lose access to their own repositories during payment disputes. Pricing changes force architecture decisions. Terms of service updates grant platforms rights over data flowing through their systems. When you own the infrastructure, these aren’t your problems.
3. Cost (not the way you’d expect). Self-hosting is not cheaper in direct spend. A GitHub Team seat is $4/month. Our VMs, storage, and backups cost more than that, and that’s before you count the time to maintain it all. What you can’t buy at any price tier on managed platforms: unlimited private registry pulls, CI runners sized exactly to your workload, full disk and network control, and zero per-seat scaling costs as your team grows. There’s also the pricing you can’t predict. GitHub announced they would charge for action runs even when the runners sit on your machines. The community pushed back and GitHub reversed course, so sometimes you get a vote. And… “sometimes” is not the same as “always”. The economics shift when you stop comparing line items and start comparing capabilities.
What actually went wrong
It would be dishonest to pretend this was smooth.
DNS caching in CI containers. When you run CI in containers on the same network as your registry, DNS resolution doesn’t work the way you expect. We spent two days debugging intermittent image pull failures before realizing the container’s DNS was caching stale records from a previous deployment.
Certificate renewal timing. Let’s Encrypt certificates expire every 90 days. Our renewal automation worked perfectly until a firewall rule change blocked the ACME challenge. The site went down for 20 minutes on a Saturday morning. We now have monitoring specifically for certificate expiry.
The “one person knows” problem. For the first few months, all the infrastructure knowledge lived in one head. That’s fine for a solo operation, and it’s exactly the fragility we advise clients against. We solved this by writing everything down (every VM, every config choice, every “why”) in documentation that lives alongside the code. AI helps a lot here. We adopted an openspec-first approach where every change starts with a proposal, specs, and design before any code gets written. The AI can pick up any thread because the context is always there, documented and structured.
What we’d tell you
If you’re considering self-hosting part of your stack:
Start with one thing. Don’t migrate everything at once. We started with the container registry because it was the simplest component with the clearest benefit (no pull rate limits, no public exposure of images).
Document the “why,” not just the “how.” Six months from now, you won’t remember why you chose Zot over Harbor, or why the registry runs on a separate VM. Write it down when you make the decision, not when you’re trying to remember it.
Monitoring is not optional. Self-hosted infrastructure without monitoring is just a more complicated way to have outages. Set up alerting before you go to production, not after your first incident. Otherwise, your first incident may be your last.
It’s a spectrum, not a binary. Not every move is from a vendor to self-hosted. Our monitoring was already self-hosted, just not good enough. We still use DigitalOcean for hosting (a US company). We still use Resend for transactional email. What matters is moving intentionally in the direction that makes sense for you.
The real benefit
The best thing about self-hosting isn’t the cost savings or the control. It’s the understanding.
When we audit a client’s CI/CD pipeline, we’re not guessing at what happens inside the black box. We’ve built the box. We know where it leaks, where it’s fragile, and where a small change can save hours per week. That operational depth is what we bring to every engagement. Not opinions about tools, but experience with the machinery beneath them.
Thinking about sovereignty for your own infrastructure, or curious what self-hosting looks like in practice? Get in touch. Happy to share what we’ve learned.