Infrastructure

PiStation

A Raspberry Pi homelab that hosts my websites and services, with no ports open to the internet

PiStation is the home infrastructure where I deploy my projects: this portfolio, RetoBox, Soundlift, Blindbox, La Pizarra (F1 and MotoGP timing) and my own services. It is a set of Raspberry Pis with clearly split roles, as in a professional environment.

One Pi for development and testing, one for production that only serves what has already been validated, and a third one for support with monitoring and remote access.

What it does

  • Separate environments: development (hot reload and test builds) and production
  • Exposed to the internet through Cloudflare Tunnels: no ports open on the router
  • Private admin access over Tailscale
  • Production never builds: images are published to GitHub Container Registry and the production Pi only pulls
  • One Docker Compose stack per service, secrets kept out of the repository and persistent data on SSD
  • Uptime monitoring with Uptime Kuma and centralised logs with Dozzle

How it is built

The whole infrastructure is described as code in a repository: one folder per machine and one per stack, each with its compose.yaml. The .env files live in a separate private repository, never in the main one.

Every project has its own repository; the infrastructure one only defines how it is deployed. Tunnels are managed from Cloudflare Zero Trust, so adding a new subdomain never requires touching the router or the local network.

Technologies

  • Raspberry Pi
  • Docker Compose
  • Cloudflare Tunnels
  • Tailscale
  • GHCR
  • Uptime Kuma
  • Nginx

Other projects