This chapter moves from architecture design to deployment reality. The objective is secure exposure, repeatable releases, and clear operational recovery paths across both Raspberry Pi and cloud environments.
Production Flow: Cloudflare Domain to Tunnel to Containers
Recommended exposure model where inbound traffic enters Cloudflare and tunnel traffic stays outbound from your host
Cloudflare Domain and Tunnel Pattern
A practical production pattern is to point a public app domain to Cloudflare and terminate user traffic at the edge, then forward to your host through Cloudflare Tunnel.
Example public hostname: app.yourdomain.com
Optional admin hostname: admin.yourdomain.com protected with Cloudflare Access
Use tunnel ingress rules to forward traffic to Caddy and internal services
Keep sensitive surfaces restricted by policy, not only by obscurity