← All notes

Series · 4 parts · 37 min

Self-hosted Infrastructure

Running a full dev and production stack on one VPS: Traefik, TLS, firewalls and the docs pipeline.

  1. Part 01Self-Hosted Dev Infrastructure with Docker ComposePer-project service duplication wastes time and breaks isolation. Build one shared infra stack with Traefik, PostgreSQL, Redis, MinIO, and Mailpit that every app joins over a named Docker network.8 min read
  2. Part 02Traefik v3: Routing Multiple Docker Apps on One ServerPort collisions and manual nginx configs are the price of running multiple Docker apps on one server. Traefik v3 auto-discovers containers and routes each one cleanly using labels.8 min read
  3. Part 03Traefik v3: Automatic Routing, TLS, and Middleware for DockerNginx breaks every time a container restarts with a new IP. Traefik watches the Docker socket and rebuilds routes automatically, TLS included. Complete production setup from scratch.12 min read
  4. Part 04Docker on a VPS: UFW, Port Bindings, and SSH TunnelsDocker bypasses UFW by default, so a misconfigured port binding exposes your database to the internet regardless of your firewall rules. Here is the binding strategy and SSH tunnel workflow that actually locks things down.9 min read