Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Set Up Ghost CMS on a VPS

Ghost is a modern CMS for blogs and newsletters. On a VPS you run it with Docker and expose it with Nginx + SSL.

Steps

  1. Ensure Docker is running:

    docker --version
    sudo systemctl enable --now docker
  2. Create a folder and start Ghost on port 2368:

    mkdir -p ~/ghost && cd ~/ghost
    docker 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:5
  3. Put 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;  }}EOF
    sudo ln -sf /etc/nginx/sites-available/ghost /etc/nginx/sites-enabled/ghost
    sudo nginx -t && sudo systemctl reload nginx
  4. Enable HTTPS with Certbot and finish setup at /ghost:

    sudo certbot --nginx -d blog.example.com
    # Browser: https://blog.example.com/ghost

Tips

  • The ~/ghost/content volume 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.

Related guides