HIMASHA HERATH

03

Self-hosted infrastructure & CI/CD

2024 to Present · Solo · Docker · GitHub Actions · Caddy · n8n · Linux

SCROLL

himasha@vps — production
Full-page capture of himasha@vps — production

Context

I run my own production environment on a VPS instead of defaulting to managed platforms. Partly for cost, but mostly because running infrastructure yourself is the fastest way to actually understand it.

What I built

A Dockerized multi-app setup behind Caddy with automatic HTTPS, deployed through GitHub Actions: push to main and the pipeline builds, ships, and restarts whatever changed. It's hosted several apps across two domains, with n8n picking up the scheduled jobs and integrations around them.

Key decisions

I kept it deliberately boring: Docker Compose instead of Kubernetes, Caddy instead of hand-tuned nginx, one small server run properly instead of scale I don't need. The real effort went into the pipelines: zero-downtime restarts, secrets handling, getting deploys to the point where I don't think about them.

Outcome

Years of uptime across real apps, and the kind of operational instinct you only pick up when there's no platform to blame at 2am. It's changed how I write software during the day too.