Skip to content
← All work
Production platformOwnedPersonal · public

The server this page runs on, designed, built and operated by me

A single internet-facing ARM server running this site, Grafana, browser-based remote desktops and the monitoring behind them. One public entry point, everything else on internal networks, encrypted off-site backups with a weekly restore test, and every decision written down.

Host
OCI Ampere A1, 2 vCPU, 12 GB, Mumbai
Public ports
443 and 80, Cloudflare ranges only
Decisions recorded
57 so far
Source
github.com/neerajjez/OneBox

Context

A free-tier ARM instance, and the wish to run real services on it to production standard: TLS, monitoring, alerting, backups, restore tests, and nothing exposed that did not need to be.

The problem

A small box makes every decision visible. Memory limits, image architecture, disk layout and firewall rules all fail loudly and early, which makes it a good place to practise making decisions properly.

What made it hard

  • 2 vCPU and 12 GB of RAM, shared by everything.
  • ARM64, so every image has to exist for it.
  • One person operating it, so anything that needs attention must announce itself.

Options considered

  • A managed platform for the site

    Easier, and teaches nothing about running the layer underneath.

  • Kubernetes on one node

    Rejected for now. The orchestration cost is larger than the workload on 2 vCPU.

  • ChosenDocker Compose with hard limits, one public entry point, and checks for everything

    Chosen, with each piece recorded on the decisions page.

The decision

nginx is the only container on a public port. Everything else sits on internal networks with CPU and memory limits. Prometheus watches every service, the certificate, the backups and the configs, and the site repairs its own certificate deployment when it drifts.

EDGEENTRY POINTSERVICESCONTROLCloudflareTLS · WAF · 15 rangesnginxonly public portGrafanaown hostKasm Workspacesown hostportfoliothis pagePrometheusevery service · 30dAlertmanagerroutes to emailOCI Object StorageAES-256 · nightlyingress locked toCloudflare ranges atthe cloud firewall ANDthe host iptables chainall backends on an internal Docker network, no published portsrestore tested weekly, off-site copy monthly; a backup nobody has restored is a hope
Fig. Single-server production platform. One public entry point, everything else on internal Docker networks, nightly encrypted off-site backups with automated restore tests.

My part

All of it, including the incidents.

Stack

  • Docker
  • nginx
  • Prometheus
  • Grafana
  • Alertmanager
  • Cloudflare
  • OCI
  • Bash

Result

  • The live page on this site reads straight from its own Prometheus.
  • One real outage so far: an expired certificate that had in fact renewed. The post-mortem is in the notes.

What I would change

Alert on the things that disagree, not only on the things that expire. Most of what went wrong here was two parts of the system holding different versions of the truth.