---
title: "Deploy Ghost + MySQL"
description: "Self-hosted Ghost with MySQL and persistent volume."
category: "Blogs"
url: https://railway.com/deploy/tcsVLc
---

# Deploy Ghost + MySQL

Self-hosted Ghost with MySQL and persistent volume.

**[Deploy Ghost + MySQL on Railway](https://railway.com/template/tcsVLc)**

- **Creator:** alphasec
- **Category:** Blogs
- **Total deploys:** 1,455

## Template content

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0`

### ghost

- **Image:** ghost:alpine
- **Public domain:** Yes

## Documentation

###Overview
[Ghost](https://ghost.org/) is a full-featured blogging platform and an open-source alternative to Medium, Substack, WordPress etc. It offers a comprehensive set of features to publish content, send newsletters, and offer paid subscriptions to members. It also offers detailed engagement analytics for your audience and content.

###Template
This template deploys the community-maintained [Docker](https://hub.docker.com/_/ghost) image, along with an attached volume and a separate MySQL database, so that configuration and content can persist across deployments.

Note: Once deployed, launch https://[RAILWAY_URL]/ghost to access the admin page and set up Ghost for the first time.

###Mail Configuration
If you want to send transactional emails, please configure the following optional variables with valid details:
* `mail__from`: 
* `mail__transport`: SMTP
* `mail__options__host`: 
* `mail__options__port`:
* `mail__options__auth__user`:
* `mail__options__auth__pass`: 

For bulk email newsletter delivery, you'll also need to configure the Mailgun service from Ghost Settings.


## Similar templates

- [Pixelfed](https://railway.com/deploy/OZSdEw) — Explore + Share beautiful photos and videos on the Fediverse
- [Hexo](https://railway.com/deploy/hexo) — Self-hosted Hexo blog with editor, comments, and S3 storage
- [NodeBB](https://railway.com/deploy/nodebb) — Node.js based forum software built for the modern web

Open this page in a browser: https://railway.com/deploy/tcsVLc
