---
title: "Deploy Ghost with MySQL"
description: "Modern publishing platform with built-in newsletters and subscriptions"
category: "CMS"
url: https://railway.com/deploy/ghost-with-mysql
---

# Deploy Ghost with MySQL

Modern publishing platform with built-in newsletters and subscriptions

**[Deploy Ghost with MySQL on Railway](https://railway.com/template/ghost-with-mysql)**

- **Creator:** codestorm
- **Category:** CMS
- **Total deploys:** 1

## Template content

### Ghost https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/ghost-light.png

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

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

- **Image:** mysql:9.4
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G`

## Documentation

# Deploy and Host Ghost with MySQL on Railway

Ghost is a modern, open-source publishing platform designed for professional creators, businesses, and independent publishers. It provides everything needed to run a content-driven business, including website publishing, newsletters, email marketing, memberships, and paid subscriptions, all from a single platform powered by MySQL.

## About Hosting Ghost with MySQL

Deploying Ghost with MySQL on Railway provides a scalable and production-ready publishing platform without the complexity of managing infrastructure. This template automatically provisions Ghost alongside a MySQL database, allowing you to launch a professional blog, newsletter, membership site, or digital publication in minutes. Railway manages networking, HTTPS, deployments, and database connectivity, while Ghost provides an intuitive content management experience with built-in support for SEO, newsletters, member management, and subscription-based monetization.

## Common Use Cases

* Launch a professional blog or content publication.
* Build a newsletter business with paid memberships and subscriptions.
* Create a company website, documentation hub, or creator platform.

## Dependencies for Ghost with MySQL Hosting

* Ghost
* MySQL

### Deployment Dependencies

* Ghost Documentation: https://ghost.org/docs/
* Ghost Admin Guide: https://ghost.org/help/
* Ghost GitHub Repository: https://github.com/TryGhost/Ghost
* Ghost Official Website: https://ghost.org/

### Implementation Details

#### Included Services

```text
Ghost
MySQL
```

#### Default Ghost Port

```text
2368
```

#### Public URL

```text
https://${{RAILWAY_PUBLIC_DOMAIN}}
```

#### Required SMTP Configuration

Ghost requires a working SMTP provider for member authentication, newsletter delivery, password recovery, and email notifications.

Example configuration:

```env
mail__transport=SMTP
mail__from=admin@example.com
mail__options__host=smtp.gmail.com
mail__options__port=587
mail__options__auth__user=your-email@gmail.com
mail__options__auth__pass=your-app-password
```

#### Accessing the Ghost Admin Panel

After deployment completes, access the admin dashboard at:

```text
https://YOUR_DOMAIN/ghost
```

Follow the onboarding wizard to create your administrator account and configure your publication settings.

## Why Deploy Ghost with MySQL on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Ghost with MySQL on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/ghost-with-mysql
