Skip to main content

Company in a Box, Part 1 of 11: Why I'm building a company's IT with containers and open source

A series on building a company's IT with containers and open source

Hi. I'm an IT admin. I've been doing this long enough to have strong opinions about Group Policy and long enough to have strong feelings about printers.

For most of my career, my home lab looked exactly like my day job: a Hyper-V host and a handful of VMs. Each one had its own OS to patch, its own disk to grow, its own backup job, and its own creative way of breaking at 2 a.m.

It worked. It also stopped teaching me anything. These days every vendor README starts with docker compose up, and I was still out here lovingly hand-crafting a VM for each one, like a medieval monk illuminating manuscripts.

So I moved the lab to containers. Then things got slightly out of hand.

A confession about who I am

Let's get this out of the way, because it explains every decision in this series.

I'm a Microsoft guy. Windows Server, Active Directory, Exchange, Hyper-V: that's my day job, and I'm good at it.

I'm also a free software guy. I've been a member of the Free Software Foundation for a while, and at home my rule is simple: free software wherever possible, paid solutions only when there's genuinely no alternative.

Yes, those two things live in the same head. Yes, it's a bit like being a vegetarian who works at a steakhouse. No, I won't be taking questions at this time.

The good news is that the two halves of my brain agree on what they want from a lab: understand how things work, own your data, and don't pay a per-seat subscription for something a well-maintained open-source project does just as well.

The goal: company IT, accessible to anyone

At some point "move some apps to containers" turned into a much better question:

Can one person, with one ordinary desktop and free software, run the IT of a real company?

Not a toy version. The real thing. Single sign-on with MFA. Mail that actually gets delivered. File sharing and video calls. A service desk, a CRM, source control, a public website, an intranet, e-learning, monitoring with alerting, security scanning, and a private AI assistant. All the things a 10–50 person company pays a small mountain of SaaS subscriptions for.

Infrastructure like that used to need a server room, a budget and a team. Today it's mostly container images and a lot of reading. I want to show it's within reach of anyone curious enough: a small business, a non-profit, a school, a student, or an admin like me who wants to learn how things are done now.

Every mistake in this series is there so you don't have to make it. I made plenty. You're welcome.

Meet Inner Bits

To keep myself honest, the lab pretends to be a company: Inner Bits, with its own real domain. In this series I'll write it as innerbits.example, because I'd rather not hand out a map of my front door. It has staff (me, and a test user who has never once complained), a directory, groups, and the tools each department would expect:

A real company needs Inner Bits runs
Identity, SSO, MFA Keycloak
Mail, webmail, mailing lists Stalwart, Roundcube, Sympa
Files, chat, video calls, documents Nextcloud with Talk and Euro-Office, XMPP
Intranet HumHub
Public website and analytics Drupal, Matomo
Training Moodle
Surveys LimeSurvey
Service desk and CMDB iTop
Sales EspoCRM
Projects Plane
Development GitLab, SonarQube
Automation n8n
Reporting and BI Trino, Superset
AI assistant that can query the other tools (MCP) Open WebUI, LiteLLM, local models

Every single one of those is free software or a free community edition.

The IT department is half the lab

Here's the part only an IT person would build with this much enthusiasm.

A company's apps are only as good as the boring stuff that keeps them running. Roughly half the containers in the lab exist to run, watch and protect the other half:

  • Deployment: a push to Git deploys within five minutes. Images are patched nightly.
  • Monitoring and alerting: Zabbix, whose alerts open tickets in the service desk. Like a real company, but the tickets are all assigned to me.
  • Dashboards, metrics, logs and traces: Grafana, Prometheus, Loki, OpenTelemetry.
  • Security: a daily image scanner and a weekly network vulnerability scan.
  • Plumbing: DNS, certificates and a reverse proxy.
  • Talking to all of it: MCP servers that let the AI assistant query Grafana, SonarQube, n8n and more, so "what broke last night?" is a question I can just ask.

And two obsessions run underneath all of it: squeezing more out of the same hardware, and automating anything I've had to do twice. Seventy containers on a 32 GB desktop doesn't happen by accident.

None of this shows up on a feature list. All of it is the difference between "I installed it once" and "I can still run it in two years". At work I'd never accept an app nobody monitors, so the lab doesn't get to either.

Why containers, really

The usual pitch is density. That's nice, but it's not why I moved. I wanted to stop:

  • Patching a whole OS per app. A Nextcloud VM is an operating system that happens to run Nextcloud. The app was maybe 5% of what I was maintaining.
  • Keeping configuration in my head. VMs drift. Six months later, nobody knows which checkbox was ticked in which console. "Nobody" here includes me.
  • Treating a rebuild as a project. A dead VM meant restoring a disk image and praying it was recent.

What I wanted: every service described in text, in Git, so the whole company can be rebuilt from a clone, a secrets file and an hour of waiting.

How it started

My first commit was humble. On 10 November 2025 I committed a docker-compose.yml for Nextcloud and an Nginx config, with the message:

My first try with Docker at home.

Two months later HAProxy appeared in front of it. Then Redis. Then a README explaining the architecture to myself.

Then I didn't touch it for six months, as is tradition.

In July 2026 I came back with a plan, and it went from one app to a platform in a few weeks. By November 2026 the Compose file describes more than 70 containers. The household has stopped asking what the fan noise is.

Yes, it runs on Windows

I can hear the FSF newsletter being folded into a paper aeroplane and thrown at me.

The host, hatchery, is a Windows 11 Pro desktop with 32 GB of RAM. The containers run in Docker Desktop, which runs a Linux VM. So I didn't escape virtualisation entirely; I just stopped being its babysitter. My laptop, hive, reaches it over Tailscale.

Why not a Linux server? Because this is the hardware I had, and because "accessible to anyone" means starting from the machine most people already own. It also turns out that running a real container platform on Windows is its own adventure: scheduled tasks instead of systemd, Windows Update restarts, Docker Desktop's firewall rules, PowerShell 5.1 quirks, and line endings. Always line endings. Several posts are about exactly that.

The rules

A few principles held up from day one:

  1. One Compose project. One file, one project, one network.
  2. Secrets in one file, never in Git.
  3. Every setup step is a script, and every script is safe to rerun. If I clicked it in a web console, it didn't happen.
  4. Private by default. Public only by exception.
  5. One identity. Every app signs in through Keycloak, or it leaves.
  6. A push to main is a deployment.
  7. If it isn't monitored, it isn't finished.
  8. Free software first. Pay only when there's no alternative.
  9. Optimise and automate, always. Every megabyte earns its keep, and every repeated task becomes a script.

Rule 5 got more apps evicted than any other. That, and my chronic inability to leave a working tool alone when a better one exists. phpMyAdmin, pgAdmin, Splunk, Dremio, Greenbone, even my whole LDAP directory: all replaced. That's posts 5 and 6, and it's a bloodbath.

The series

  1. Why I'm building a company's IT with containers and open source (you are here)
  2. One Compose file to run the whole company
  3. Private by default, public by exception
  4. Company email on a home internet connection
  5. One login for every app with Keycloak
  6. Choosing open-source apps: the SSO test
  7. Every Git push is a deployment
  8. Monitoring the company with Zabbix, Grafana and Loki
  9. Patched images and vulnerability scanning
  10. A private AI assistant on local models
  11. What it costs vs. SaaS and the cloud

Next up: why one 70-service Compose file is a good idea, despite what your instincts are telling you right now.

Read next: Company in a Box, Part 2 of 11: One Compose file to run the whole company

Comments

Popular posts from this blog

Company in a Box, Part 11 of 11: What it costs vs. SaaS and the cloud

A series on building a company's IT with containers and open source Ten posts in, it's time for the question everyone skips to: is this worth it? Inner Bits runs a small company's IT on one desktop. What does that cost? What would the same company pay to rent it all as SaaS? And what if you ran the exact same stack on a rented server at Hetzner, OVH, Azure or AWS instead of under your desk? Get comfortable, there are tables. Three of them. What the lab costs to run All prices are what I pay in Portugal. Item Cost Hardware a ~€1,500 desktop (32 GB RAM, a GPU for the AI models); over five years, ~€25 a month Electricity ~€15–30 a month Domain name ~€1 a month (about €12 a year) Cloudflare ~€5 a month (Workers Paid; Tunnel, Email Routing and DNS are free) Stalwart Enterprise licence paid (see the ledger below) Tailscale free personal plan Software €0 for everything else. Every app is free software or a free community edition Total ro...

Company in a Box, Part 9 of 11: Patched images and vulnerability scanning

A series on building a company's IT with containers and open source Running a company's IT means running its security too. A home lab is an easy place to skip that. "It's just at home." "It's behind the VPN." Famous last words, usually followed by a very educational weekend. Inner Bits has a public website, inbound mail and a tunnel from the internet. It's meant to show what a small company could run. So it gets the treatment I'd expect at work: hardened containers, patched images, and scanning that happens whether I remember it or not. The baseline: same rules for everyone Every service in the Compose file merges a shared hardening block: no-new-privileges , so a process can't climb its way up through setuid binaries; a PID limit , so a fork bomb only blows up its own container; a memory limit of about twice normal use. On top of that: healthchecks on the databases and key services, databases never recreated unattended, and se...