Ghost is a modern CMS for blogs and newsletters. On a VPS you run it with Docker and expose it with Nginx + SSL.
Steps
Ensure Docker is running:
docker --versionsudo systemctl enable --now dockerCreate a folder and start Ghost on port 2368:
mkdir -p ~/ghost && cd ~/ghostdocker run -d --name ghost -e url=https://blog.example.com -p 127.0.0.1:2368:2368 -v ~/ghost/content:/var/lib/ghost/content --restart unless-stopped ghost:5Put Nginx in front as a reverse proxy:
sudo tee /etc/nginx/sites-available/ghost >/dev/null <<'EOF'server { listen 80; server_name blog.example.com; location / { proxy_pass http://127.0.0.1:2368; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; }}EOFsudo ln -sf /etc/nginx/sites-available/ghost /etc/nginx/sites-enabled/ghostsudo nginx -t && sudo systemctl reload nginxEnable HTTPS with Certbot and finish setup at /ghost:
sudo certbot --nginx -d blog.example.com# Browser: https://blog.example.com/ghost
Tips
- The
~/ghost/contentvolume holds themes, images and data — include it in backups. - Set
url=to your real domain before the first start.
ext step
A VPS with RAM for Ghost: Deploy your Cloud VPS.