Ghost is a free and open source publishing platform for building and running modern blogs, magazines, and journals.
This guide shows how to deploy a Ghost instance on Render in just a few minutes. This version uses a SQLite database stored on a Render SSD Disk so your data is saved across deploys and automatically backed up with daily snapshots.
You can also run Ghost with MySQL 5 instead of SQLite using the instructions below. Let’s get started!
Fork render-examples/ghost on GitHub or click ‘Use this template’.
Create a new Web Service on Render, and give Render permission to access your new repo.
Make sure the
Environmentis set to
Dockerand enter a name for your service.
Add a Disk under Advanced with the following values:
10 GBFeel free to change this to suit your needs.
Using SQLite is sufficient for most Ghost sites. But if your site gets a lot of traffic (more than 100K requests per day), we recommend using MySQL instead of SQLite. Render makes it this equally easy to do.
Set up a MySQL 5 instance on Render and make a note of the connection details. Make sure to select the
mysql-5branch when you create your database.
Add the following environment variables under Advanced:
MySQL hostname (e.g.
MySQL database name (e.g.
MySQL username (e.g.
MySQL user password
That’s it! Save your web service to bring up Ghost. It will take a couple of minutes to start, but future deploys will be much faster.
Your Ghost instance will be available on your
.onrender.com URL as soon as the deploy is live.
You can then configure Ghost by going to
https://your-subdomain.onrender.com/ghost and start creating content for your new site!
Render makes it easy to add a custom domain to your Ghost site, with free and fully managed SSL. Follow the Render custom domains guide to add a domain to your site.
After adding and verifying your domain on Render, make sure to add the following environment variable to your Ghost service on Render. You can do this under the Environment tab.
urlshould be set to the primary domain for your site. If your custom domain is set up to redirect
wwwto the apex domain, set
See Running Ghost with config env variables for more information.
You can set up Ghost to send email using an external service like Mailgun which allows up to 10,000 emails per month for free.
See https://ghost.org/docs/concepts/config/#mail for how to get Mailgun credentials for your Ghost domain.
Once you have your credentials, set up the following environment variables under the Environment tab to start sending mail from Ghost.
Render will automatically restart Ghost to apply your new settings.