Skip to main content

Posts

Showing posts with the label Company in a Box

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 10 of 11: A private AI assistant on local models

A series on building a company's IT with containers and open source Every company is being asked "what's our AI strategy?" right now. For most small companies, the honest answer is: "a per-seat subscription to a public chatbot, and hoping nobody pastes the customer list into it." Inner Bits has a different answer. An assistant that runs on the company's own hardware, signs in with the company's own identity, logs who used what, and can look things up in the company's own systems. Built entirely from free software and open-weight models. Three layers people ──> Open WebUI (chat, Keycloak sign-in) editors ──> VS Code + Continue │ ▼ LiteLLM (gateway: keys, budgets, logs, routing) │ ▼ Ollama on the Windows host (GPU), localhost only Ollama: the models Ollama runs natively on Windows rather than in a container, so it can use the GPU directly. It serves llama3...

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...

Company in a Box, Part 8 of 11: Monitoring the company with Zabbix, Grafana and Loki

A series on building a company's IT with containers and open source With 70 containers, "is it working?" is no longer a question you can answer by clicking around and squinting. You need monitoring that tells you before your users do, logs you can search in one place, and a way to follow one slow request through the whole stack. This is the part of the lab where my day job leaks through most. A company's users never see the monitoring, but they absolutely feel it when it's missing: the outage nobody noticed for a day, the certificate that expired on a Saturday. Inner Bits pretends to be a company, so its IT department gets the tools a real one would insist on. If you ask me, they're the most important containers in the lab. There are four observability tools. That sounds like too many. Each one earns its keep. Who does what Tool Answers Zabbix Is it up? Should someone be woken up? Prometheus What do the apps say about themselves? Loki + ...

Company in a Box, Part 7 of 11: Every Git push is a deployment

A series on building a company's IT with containers and open source I make changes to the lab from my laptop. I don't RDP in. I don't SSH in and type docker compose up . I commit, I push to main , and within five minutes the host has deployed it. On Linux you'd reach for a CI runner, Flux, or a systemd timer. On a Windows desktop running Docker Desktop, your tools are Task Scheduler and PowerShell. It's like being handed a spoon and told to dig a tunnel. Surprisingly, it works. The goal behind all of this is simple, and a bit obsessive: if I've done something twice, it becomes a script; if a script runs regularly, it becomes a scheduled task. Deploys, secrets, database users, SSO clients, DNS records, mail senders, Grafana dashboards, Zabbix checks, image patching, even restarting the mail server when its virus scanner moves: all automated. The best admin work is the work you never have to do again. Three scheduled tasks Everything hangs off three hidden s...

Company in a Box, Part 6 of 11: Choosing open-source apps: the SSO test

A series on building a company's IT with containers and open source When I made the rule "every app signs in through Keycloak", I thought it was an integration task. It turned out to be a selection process . Something between a job interview and a reality TV show, where apps get voted off the island. Over a few months it removed more apps than any other reason. Every time, the lab got better. Free software first Before the SSO test, there's an even earlier filter, and it's a personal one. I've been a member of the Free Software Foundation for a while. My rule for Inner Bits is: free software wherever possible, and pay only when there's genuinely no alternative. That's not a purity contest (the host runs Windows, I've made my peace with that in post 1). It's a practical choice: You can read the code, fix it, and keep running it when the vendor changes its mind. Your data sits in formats and databases you control. It's what makes ...

Company in a Box, Part 5 of 11: One login for every app with Keycloak

A series on building a company's IT with containers and open source At work, nobody would accept twenty-five separate admin passwords for twenty-five internal apps. The auditors would faint. Then they'd wake up, write a finding, and faint again. At home, that's exactly where most labs end up: every app with its own admin account, every password in a password manager, and MFA on precisely nothing. I wanted Inner Bits to behave like a well-run company: one identity, one password, MFA, and access controlled by groups. Getting there took most of the lab's life, and it ended with me retiring a directory server I'd spent weeks building. Character development. The road, at a glance Here's the whole journey from LDAP to Keycloak only, before we get into the details: When Step How it felt July 2026 OpenLDAP is the directory; Keycloak federates it; some apps bind to LDAP directly "Just like Active Directory. I'm a genius." Early Novemb...

Company in a Box, Part 4 of 11: Company email on a home internet connection

A series on building a company's IT with containers and open source There's an old joke among admins: "Just run your own mail server" is advice only ever given by people who have never run their own mail server. I've run Exchange for a living. I know the joke. I did it anyway. Why? Because a company that can't send a password-reset email isn't a company. Zabbix needs to email alerts. Apps need to send notifications. Mailing lists need, well, mail. And honestly, there's no service that teaches you more about the internet than mail does, mostly by punishing you. The parade From the Git history, in order of appearance: Mailpit (July 2026). A fake SMTP server that catches everything. Perfect for testing. Useless the moment you want an actual mailbox. docker-mailserver , the same day , once I wanted an actual mailbox. iRedMail (August). The full suite, webmail and admin panel included. Mailu (September). Nicer architecture. More containers. iR...