Radwan DoufanWeb Developer
All work

Self-hosted infrastructure

Self-hosted Homelab

A recycled laptop running over 20 self-hosted services that replace paid cloud subscriptions, with monitoring and locked-down remote access.

Client
Personal project
Role
Hardware setup, system administration, security and monitoring
Year
2026
Status
In development
Self-hosted Homelab
Homepage service dashboard

The problem

I wanted to replace paid cloud services with apps I run and configure myself, on hardware I already owned, and to learn how real servers are deployed, secured and monitored along the way. An unused laptop had to do the job of a dedicated server.

The approach

  1. 01

    Every service runs in its own Docker container, grouped into Compose stacks managed from Portainer. Each app can be updated, restarted or moved without touching the others.

  2. 02

    Apps and databases live on the SSD for speed, while media and files sit on two hard drives merged into one share with mergerfs. If one drive fails, only the files on that drive are lost.

  3. 03

    Nothing administrative is exposed to the internet. Remote access goes through Tailscale, SSH accepts keys only on a non-default port, and a firewall, fail2ban and automatic security updates cover the host.

  4. 04

    Problems are found from data, not guesses: Prometheus and Grafana track host and container metrics, Loki collects every log, Uptime Kuma checks each service, and Scrutiny watches disk health.

Architecture

  1. AccessTailscale for remote access. Pi-hole provides DNS and ad blocking, and Nginx Proxy Manager gives each service a local .lab address.
  2. ApplicationsJellyfin, Immich, Nextcloud, Kavita, Samba, qBittorrent and Bazarr, with a Homepage dashboard linking them all.
  3. ObservabilityPrometheus scrapes node-exporter and cAdvisor, Grafana Alloy ships logs to Loki, and Grafana shows dashboards and sends alerts.
  4. PlatformDocker with 13 Compose stacks managed in Portainer, on Debian 13 with UFW and fail2ban.
  5. HardwareHP ProBook 450 G4: Intel i7 7th gen, 8 GB RAM, 512 GB SSD, plus 320 GB and 750 GB drives pooled with mergerfs.

Tech stack

  • Docker + Portainer

    isolates each service and manages every stack from one web UI

  • Tailscale

    remote access without opening ports on the router

  • Prometheus + Grafana

    industry-standard metrics, dashboards and alerting

  • Loki + Grafana Alloy

    search logs from all containers and the host in one place

  • mergerfs

    combines two mismatched drives into one share without RAID

  • Pi-hole + Nginx Proxy Manager

    network-wide ad blocking and readable local addresses

Screens

  • Screenshot
    Grafana host metrics
  • Screenshot
    Grafana per-container resources

The outcome

  • Paid cloud services replaced by self-hosted apps configured to my own needs.
  • 26 containers across 13 Compose stacks running on one 8 GB laptop.
  • Host and per-container metrics, plus 14 days of searchable logs, in Grafana.
  • SSH locked to keys only, with a host firewall, fail2ban and automatic security updates.