Running a Containerized ttyd and tmux Web Terminal over Tailscale for Mobile Homelab Access
A phone can reach your homelab terminal without a single public port, and it can come back to the same shell after a dropped signal. The recipe is a small Docker container running ttyd, a web terminal daemon, wrapped around a persistent tmux session, reachable only over your private Tailscale network. If a long build or an AI coding session is running when you lock the screen, it keeps running, and you reattach when you are ready.
This guide builds that container from scratch. For the personal story behind why I wanted it, read Running Full AI Coding Sessions from My Phone with ttyd, tmux, and Tailscale on Frizzle Tech Blog.





