← Back to all

Cloudflare Tunnel

Estimated

Publish a web app on your own domain without opening a single router port.

ReplacesDyn DNS Pro ($55/yr)
Memory footprint30 MB idle · 60 MB peak
Architecturesamd64 / arm64
LicenseApache-2.0 · Easy

Watch out

Cloudflare terminates TLS, so it can see the traffic. Its terms restrict streaming large video (e.g. Jellyfin) through tunnels.

Zero-open-port Compose snippet

Includes mem_limit and 127.0.0.1 binding. Open in Planner to combine with Tailscale/Cloudflare & .env.

# Generated by NASPicks (https://naspicks.com/planner/)
# Hardware: UGREEN NASync DXP2800 (8 GB, ugos) | Peak est: 0.1 GB / 6.7 GB
# Zero-open-port default: web ports bind to 127.0.0.1 and are reached via tailscale.
# Every service includes mem_limit (peak x 1.2) to help prevent host OOM freezes.

services:
  cloudflared:
    image: cloudflare/cloudflared:latest
    container_name: cloudflared
    restart: unless-stopped
    mem_limit: 128m
    command: tunnel --no-autoupdate run
    environment:
      - TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
    networks:
      - naspicks

networks:
  naspicks:
    driver: bridge

Comments (GitHub Discussions)

GitHub Discussions ↗

Comments load lazily to keep pages fast everywhere.