← Zurück zur Videothek

Deploy Docker to a Real Server in 10 Minutes (ssh + compose)

Dargslan · 2026-04-26 · 🇬🇧 Englisch · YouTube Playlist
https://www.youtube.com/watch?v=P9Nu25HACaU
▶ Video auf YouTube

📄 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.

📚 Kapitel

00:00
The 3-box deploy pipeline (laptop → registry → server)
01:00
Spin up a Hetzner / DigitalOcean VPS
02:00
Fresh server setup (6 steps: SSH, deploy user, Docker, ufw)
02:30
The deploy loop (build local → push → ssh → pull → up)
03:30
Zero-downtime deploys (healthcheck-driven)
04:00
Pre-launch production checklist
05:00
5 deploy mistakes that cause real outages
06:00
Continue to Lesson 12 (Final Project)

📺 Ähnliche Videos