CRM, Support & Productivity1 GB RAM (Pro recommended)· Port 2368

Deploy Ghost Publishing & Newsletters with Docker Compose

Headless Node.js CMS, blog, and paid newsletter platform with native SEO and memberships.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  ghost:
    image: ghost:5-alpine
    restart: unless-stopped
    ports:
      - "2368:2368"
    environment:
      - url=${url:-https://blog.yourdomain.com}
      - NODE_ENV=${NODE_ENV:-production}
    volumes:
      - app_data:/var/lib/ghost/content


volumes:
  app_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
urlhttps://blog.yourdomain.comCanonical public URL for Ghost links and sitemaps.
NODE_ENVproductionRuns Ghost in production caching and asset mode.

Ghost Publishing & Newsletters Self-Hosting FAQs

How much RAM is required to self-host Ghost Publishing & Newsletters in production?

Ghost Publishing & Newsletters requires a minimum of 1 GB RAM (Pro recommended). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose Ghost Publishing & Newsletters with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the ghost:5-alpine container on Vexlo Cloud, set the exposed port to 2368, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for Ghost Publishing & Newsletters?

Mount /var/lib/ghost/content to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →