← Articles · System Admin & Blue Team · 2026-11-18 · 6 min read

Zero-Trust Home Server PaaS: Zero Inbound Ports and Centralized Telemetry

Key takeaways from building HomeSrv: securely publishing self-hosted Docker Swarm workloads using Cloudflare Tunnel, Traefik, VictoriaLogs, and encrypted Restic backups.

  • Zero Trust
  • Cloudflare Tunnel
  • Traefik
  • Docker Swarm

# Why Eliminating Inbound Port Forwarding Matters

Opening router ports 80/443 on residential or small-office networks exposes your gateway IP directly to automated internet scanners and breaks whenever dynamic IPs rotate. In HomeSrv, every external request enters strictly over outbound encrypted Cloudflare Tunnels with zero open inbound router ports.

Public routes are filtered by Cloudflare WAF, while administrative control planes require Cloudflare Access authentication before ever reaching the internal reverse proxy.

# Resource-Capped Containers via Traefik + Dokploy

Every service runs inside Docker Swarm with explicit CPU/RAM limits and an isolated bind-mount directory (/srv/data/<project>). Separating stateless apps from stateful storage early makes automated recovery predictable.

  • Services listen only on internal overlay/bridge networks rather than binding public host ports.
  • Control planes sit behind identity-gated Zero-Trust Access rules instead of basic passwords.
  • Nightly encrypted Restic jobs snapshot only persistent stateful volumes off-site.
TERMINAL / CODE
# Per-container quota and internal bridge isolation baseline
deploy:
  resources:
    limits:
      cpus: '1.0'
      memory: 256M

# Unified Observability & Instant Alerting

Streaming container and reverse-proxy logs into VictoriaLogs, tracking HTTP anomalies with GoAccess, and firing health alerts to Telegram turns incident triage from guesswork into a fast, structured workflow.