Radwan DoufanWeb Developer
← All posts

One old laptop, a whole homelab: how my server is put together

A headless Debian server on an HP ProBook 450 G4 running media, cloud and monitoring in Docker, with MergerFS storage and remote access over Tailscale and WireGuard.

Every service I self-host runs on one machine: an HP ProBook 450 G4 with the lid closed, running headless Debian. It is where I practise the operations side of the work I do for clients: containers, reverse proxies, storage, backups and monitoring, on hardware where mistakes cost me an evening rather than a client’s weekend.

The layout

Requests come in at the top and land on disk at the bottom:

  INTERNET / WAN
      │
      ▼
┌────────────────────────────────────────────────────────┐
│ NETWORK & ACCESS LAYER                                 │
│                                                        │
│  [ Tailscale ] <────> [ WireGuard ]                    │
│         │                                              │
│         ▼                                              │
│  [ Nginx Proxy Manager ] ──(DNS)──> [ Pi-hole ]        │
└─────────┬──────────────────────────────────────────────┘
          │ (reverse proxy routing)
          ▼
┌────────────────────────────────────────────────────────┐
│ DOCKER ENGINE (managed via Portainer)                  │
│                                                        │
│  ┌─────────────────┐ ┌─────────────────┐ ┌──────────┐  │
│  │ MEDIA & CLOUD   │ │ MONITORING      │ │ SERVICES │  │
│  │ ├─ Jellyfin     │ │ ├─ Netdata      │ │ ├─ Samba │  │
│  │ ├─ Immich       │ │ ├─ Uptime Kuma  │ │ └─ qBitt │  │
│  │ ├─ Nextcloud    │ │ └─ Scrutiny     │ │          │  │
│  │ └─ Kavita       │ │                 │ │          │  │
│  └────────┬────────┘ └────────┬────────┘ └────┬─────┘  │
└───────────┼───────────────────┼───────────────┼────────┘
            │                   │               │
            ▼                   ▼               ▼
┌────────────────────────────────────────────────────────┐
│ STORAGE LAYER (MergerFS)                               │
│ Mount point: /mnt/storage                              │
│                           │                            │
│          ┌────────────────┴────────────────┐           │
│          ▼                                 ▼           │
│     /mnt/disk1                        /mnt/disk2       │
│ (internal 320 GB HDD)          (external 750 GB drive) │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ BARE METAL                                             │
│ OS: Debian Linux (headless)                            │
│ HW: HP ProBook 450 G4                                  │
└────────────────────────────────────────────────────────┘

Network and access

Nginx Proxy Manager routes each subdomain to the right container and terminates TLS. Pi-hole answers DNS for the whole network and blocks ads before they load. For remote access I use Tailscale day to day and keep WireGuard as a second path, so nothing has to be exposed directly to the internet.

Containers

Every service is a Docker container, managed as stacks in Portainer with persistent volumes and restart policies. If a container dies, it comes back on its own; if I break a config, I roll the stack back.

  • Media and cloud: Jellyfin, Immich, Nextcloud and Kavita
  • File sharing: Samba
  • Monitoring: Netdata, Uptime Kuma and Scrutiny

Storage

Two drives of different sizes, an internal 320 GB HDD and an external 750 GB drive, are pooled with MergerFS into a single mount at /mnt/storage. Services see one big folder; MergerFS decides which disk each file lands on. It is not RAID, so there is no redundancy, but it lets mismatched disks work as one without reformatting either.

Monitoring

Netdata shows CPU, memory and network live. Scrutiny reads SMART data so I hear about a failing drive before it fails. Uptime Kuma checks every service, and its status feed powers the little “Homelab” indicator in this site’s header.

What it taught me

Running my own box changed how I build for clients. I design for restarts, because containers restart. I log and monitor from day one, because a silent failure is the worst kind. And I keep the stack small, because every extra moving part is one more thing to patch at 2 a.m.