Playbook 01 · Starter & Tutorial

How to Run 8 Self-Hosted Docker Services on 4 GB RAM (N100 Starter Blueprint)

You do not need 32 GB of RAM or a heavy control panel to run your own passwords, backups, drive health monitor, media, music, books, and RSS. Here is the exact folder layout, port table, and memory-capped Docker Compose structure tested on Intel N100-class hardware.

Baseline: Intel N100 · 4–8 GB RAM · Docker Compose v2 Measured idle stack: ~377 MiB Updated: 2026-12-05

1. Why 4 GB NAS builds usually fail in week one

Most low-power home servers don't run out of RAM during normal idle browsing—they crash during unbounded spikes. A single initial comic library scan, ffmpeg thumbnail batch, or unscheduled backup run without a Docker mem_limit can trigger Linux's OOM killer and silently knock out your password vault or SSH daemon.

Core rule: Set mem_limit and bind every admin port to 127.0.0.1 before your first docker compose up -d, not after your first crash.

2. Recommended host folder layout

Keep configuration and service data strictly separated from day one. Put Compose files in git (or a plain text folder) and point your Backrest / restic backup jobs cleanly at /srv/selfhosted/data/.

Host directory tree
/srv/selfhosted/
├── compose/                       # one folder per stack (Dockge compatible)
│   ├── vaultwarden/docker-compose.yml
│   ├── backup/docker-compose.yml      # Backrest + Scrutiny
│   ├── media/docker-compose.yml       # FileBrowser Quantum, Navidrome, Kavita
│   └── productivity/docker-compose.yml # FreshRSS, Glance
├── data/                          # service databases & state — back this up
│   ├── vaultwarden/
│   ├── backrest/
│   ├── scrutiny/
│   ├── navidrome/
│   ├── kavita/
│   ├── freshrss/
│   └── glance/
├── media/                         # mount read-only (:ro) wherever possible
│   ├── music/
│   ├── books/
│   └── videos/
└── backups/                       # local restic repo (mirror off-box weekly)

3. Port & memory-limit table (zero port collisions)

Several self-hosted images default to container port 80 or 8080. Keep container ports untouched and map each service to its own loopback host port:

Service Measured Idle Suggested mem_limit Host Loopback Binding
Vaultwarden~7 MB256m127.0.0.1:8081:80
BackrestScheduled bursts512m127.0.0.1:9898:9898
Scrutiny66 MiB512m127.0.0.1:8082:8080
FileBrowser Quantum33 MiB512m127.0.0.1:8083:80
Navidrome25 MiB256m127.0.0.1:4533:4533
Kavita246 MiB1g127.0.0.1:5000:5000
FreshRSSModest / spikes512m127.0.0.1:8084:80
GlanceNegligible128m127.0.0.1:8085:8080
rtk (Host CLI)0 MB idleNon-containerCLI binary on host

4. Copy-ready starter Docker Compose pattern

Start with the core protection stack first (Vaultwarden, Navidrome, Scrutiny), verify memory with docker stats, then layer on media and reading apps one stack at a time.

docker-compose.yml (core pattern)
services:
  vaultwarden:
    image: vaultwarden/server:latest
    restart: unless-stopped
    mem_limit: 256m
    ports:
      - "127.0.0.1:8081:80"
    volumes:
      - /srv/selfhosted/data/vaultwarden:/data

  navidrome:
    image: deluan/navidrome:latest
    restart: unless-stopped
    mem_limit: 256m
    ports:
      - "127.0.0.1:4533:4533"
    volumes:
      - /srv/selfhosted/data/navidrome:/data
      - /srv/selfhosted/media/music:/music:ro

  scrutiny:
    image: ghcr.io/analogj/scrutiny:master-omnibus
    restart: unless-stopped
    mem_limit: 512m
    cap_add:
      - SYS_RAWIO
    ports:
      - "127.0.0.1:8082:8080"
    volumes:
      - /srv/selfhosted/data/scrutiny:/opt/scrutiny/config
      - /dev:/dev:ro

5. First-boot verification checklist

  • Create the /srv/selfhosted/ folder tree before starting any container so Docker does not auto-create root-owned folders.
  • Start one stack at a time and inspect live usage with docker stats --no-stream.
  • Put Vaultwarden behind HTTPS (via Tailscale Serve or a local reverse proxy) before creating your master account.
  • Mount media libraries read-only (:ro) until user permissions are confirmed.
  • Run the 15-minute restore drill before trusting the server with real data.
Want to estimate your exact subset first? Use the interactive RAM Budget Telemetry & Compose Generator on the main hub to pick only the containers you need and export a custom YAML file.