Deploy Docker to a Real Server in 10 Minutes (ssh + compose)
📄 Zusammenfassung
First, you'll harden a fresh server: SSH keys, a deploy user, Docker installed, firewall locked down — done once, then forgotten. SSH in as root one last time, then immediately create a deploy user — because running production as root is a mistake you only make once. Then ssh to prod and mirror it: git pull, compose pull, compose up dash d, tail the logs to confirm it's healthy. Add a Host entry to your SSH config, and suddenly 'ssh prod' just works — wrap that in a one-liner that pulls and ups, and a deploy becomes a single command. Watchtower handles auto-pulls when new tags land, rsync pushes quick compose tweaks without a git roundtrip, profiles let you keep backup jobs dormant until you call them, and a GitHub Actions workflow ties the whole loop together on every tag.