Notes from a small homelab.

Practical write-ups on self-hosting, DNS, backups and the art of keeping a handful of small servers boring and reliable.

self-hostinglinuxdnsbackupsdockermonitoring

Recent notes

notes / backups

The 3-2-1 rule for people with one VPS

You don't need a storage cluster to have decent backups. A nightly dump, an off-site copy and a restore test once a month go a long way.

pg_dump -Fc app > /backup/app-$(date +%F).dump
rclone copy /backup remote:archive --max-age 24h
notes / dns

Low TTLs are cheap insurance

If you ever plan to move a service, drop the TTL a few days before. Five minutes of caching is plenty for a small site.

notes / reverse-proxy

Why I moved from nginx to Caddy for small projects

Automatic certificates and a config file that fits on one screen. For anything with a handful of hosts it's hard to beat.

example.org {
    reverse_proxy 127.0.0.1:8080
}
notes / docker

Don't let container logs eat your disk

The default json-file driver has no size limit. Two lines in daemon.json save a lot of 3 a.m. surprises.

Current stack

Debian on a couple of small virtual machines, Docker Compose for everything, Caddy in front.

PostgreSQL for anything that needs a database, flat files for everything else.

Uptime checks every minute, alerts to a phone, nightly backups shipped off-site.

Everything is written down here so future me knows what past me did.

About

Blue Relay is a personal notebook. Nothing here is a product or a service — just things learned the hard way.

Notes are added irregularly, usually right after something broke and got fixed.