Why Self-Host?

Self hosting

Self-hosting means running open-source services on hardware you control, whether that is a Raspberry Pi beside your router, a two-bay NAS, or a refurbished mini PC. Instead of keeping family photos, password vaults, and notes solely inside subscription cloud accounts, you run equivalent software on your own disks.

Modest second-hand hardware and Docker Compose make getting started straightforward, without complex manual builds or high upfront spending.

Your First Self-Hosted Service

File synchronisation makes an intuitive starting point, with Nextcloud and Syncthing covering two distinct approaches.

Nextcloud: Full Private Cloud

Nextcloud provides file sync alongside shared calendars, contacts, task lists, and mobile photo auto-upload.

Minimum requirements:

  • Any Linux host with 2GB+ RAM.
  • 10GB+ storage (expandable for media and backups).
  • Docker or bare-metal LAMP install.

Quick Docker test run:

docker run -d \
  --name nextcloud \
  -p 8080:80 \
  -v nextcloud_data:/var/www/html \
  nextcloud:latest

Visit http://your-server:8080 on your LAN to complete initial setup. Before exposing Nextcloud outside your home network, put it behind a TLS reverse proxy as explained in Networking.

Syncthing: Lightweight Peer-to-Peer Sync

Syncthing mirrors chosen folders directly between your laptops, phones, and home server without a central database or web office suite.

Common Self-Hosted Replacements

CategoryReplacesOpen-Source OptionsComplexity
File syncGoogle Drive, DropboxNextcloud, SyncthingLow
Media libraryHosted media streaming (for owned files)JellyfinLow
Password vaultCommercial password managersVaultwardenLow
Photo archiveGoogle Photos, iCloud PhotosImmich, PhotoPrismModerate
DNS filteringISP default DNSPi-hole, AdGuard HomeLow
VPN accessCommercial remote accessWireGuard, TailscaleModerate
Notes and wikisNotion, EvernoteBookStack, OutlineLow
BookmarksCloud browser syncLinkdingLow
RSS readerHosted feed aggregatorsMiniflux, FreshRSSLow
Git hostingPrivate cloud reposForgejo, GiteaModerate
Uptime monitoringHosted ping alertsUptime KumaLow
Email hostingGmail, OutlookMailu, StalwartHigh (deliverability is hard)

Docker Compose in Practice

Most home-lab stacks run via a single compose.yml defining containers, mapped ports, and persistent volumes:

services:
  nextcloud:
    image: nextcloud:latest
    ports:
      - "8080:80"
    volumes:
      - nc_data:/var/www/html
    restart: unless-stopped

  vaultwarden:
    image: vaultwarden/server:latest
    ports:
      - "8081:80"
    volumes:
      - vw_data:/data
    restart: unless-stopped

volumes:
  nc_data:
  vw_data:

Start both services with docker compose up -d and stop them cleanly with docker compose down.

Choosing Your Hardware Tier

Check current UK retail pricing when comparing machines; start small and upgrade only when CPU, RAM, or disk bays hit real bottlenecks:

PlatformCost TierPower DrawBest For
Raspberry Pi 5Entry-levelLow (4 cores, 8GB)Pi-hole, WireGuard, light utilities
Intel N100 Mini PCBudgetLow-to-moderate (4 cores, 16GB)15–25 Docker containers, transcoding
Two-bay / four-bay NASMid-rangeModerateMirrored file storage plus light apps
Refurbished office micro PCLow (used market)ModerateHigh CPU value per pound
Custom ATX/rack serverHigher upfrontHigherMultiple VMs, ECC RAM, large ZFS arrays

Essential Security Habits

Running your own services makes you the system administrator:

  • Use a reverse proxy: Serve HTTPS via Caddy or Traefik rather than exposing raw container ports.
  • Automate TLS certificates: Let's Encrypt keeps certificates valid without manual renewals.
  • Lock down SSH: Require SSH keys and disable root password logins.
  • Run Fail2ban: Automatically block brute-force login attempts.
  • Pin and update carefully: Track release notes and apply security patches regularly.
  • Firewall unused ports: Expose only ports your stack needs (see Security).
  • Follow 3-2-1 backups: Store encrypted off-site copies (see Backup Strategies).

Growing Step by Step

Once core apps run smoothly, layer in centralised SSO (Authelia or Authentik), uptime alerts (Uptime Kuma), and automated off-site Restic backups. Keeping each piece simple, documented, and backed up makes the whole stack enjoyable to run long term.

Product links may include affiliate partnerships. See our affiliate disclosure for details.