Homelab

  • personal
  • ongoing

A Raspberry Pi that runs the LoS server, my music streaming and the monitoring for both, in Docker, reachable from anywhere through Cloudflare Tunnels without a single open port.

results

  • Runs the LoS server, Navidrome and Grafana + Loki in Docker on a Raspberry Pi
  • Remote access through Cloudflare Tunnels, with HTTPS and no open ports
  • My whole music library streamed to any device, with no subscriptions

architecture

The phone and any browser reach a Raspberry Pi through a Cloudflare Tunnel; on the Pi, Docker runs the LoS server, Navidrome and Grafana with Loki.

External. To Cloudflare Tunnel.Phone · laptopLoS PWAworks offlineExternal. To Cloudflare Tunnel.Anywherebrowser · music appsExternal. From Phone · laptop, Anywhere. To Raspberry Pi.Cloudflare Tunnelno open portsHTTPSBuilt by me. From Cloudflare Tunnel. To LoS server, Navidrome, Grafana + Loki.Raspberry PiDockerBuilt by me. From Raspberry Pi.LoS serverExpress · PostgreSQLBuilt by me. From Raspberry Pi.Navidromemusic streamingStorage. From Raspberry Pi.Grafana + Lokilogs · monitoringExternal. To Cloudflare Tunnel.Phone · laptopLoS PWAworks offlineExternal. To Cloudflare Tunnel.Anywherebrowser · music appsExternal. From Phone · laptop, Anywhere. To Raspberry Pi.Cloudflare Tunnelno open portsHTTPSBuilt by me. From Cloudflare Tunnel. To LoS server, Navidrome, Grafana + Loki.Raspberry PiDockerBuilt by me. From Raspberry Pi.LoS serverExpress · PostgreSQLBuilt by me. From Raspberry Pi.Navidromemusic streamingStorage. From Raspberry Pi.Grafana + Lokilogs · monitoring

the story

A Raspberry Pi at home that runs my own services. It started when LoS outgrew my phone and I centralized its database on the Pi; from there it kept collecting services.

The biggest one is music. After years of relying on streaming services, I wanted full control over my library: no algorithms, no licensing changes, no subscriptions. Navidrome streams my entire collection to any device, anywhere. It's part of a broader move toward self-hosting and owning my digital life.

Everything runs in Docker, and nothing is exposed directly: Cloudflare Tunnels handle remote access without opening a single port on my router, and Grafana and Loki collect the logs, so when something breaks I can see why.

One small machine

A Raspberry Pi is not much hardware for a database, a music server and the monitoring of both, so the Pi has to handle transcoding without choking. And a growing library only stays usable with a consistent folder structure and metadata tags (there's a tag editor for that now) and a plan for backups.

built with