---
title: "Deploy Mautic"
description: "[2026-08-11] - Updated(backup pls) - Largest OSS marketing automation proj."
category: "Automation"
url: https://railway.com/deploy/9yIPIs
---

# Deploy Mautic

[2026-08-11] - Updated(backup pls) - Largest OSS marketing automation proj.

**[Deploy Mautic on Railway](https://railway.com/template/9yIPIs)**

- **Creator:** beuz's Projects
- **Category:** Automation
- **Total deploys:** 486

## Template content

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

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

### Mautic https://mautic.org/wp-content/uploads/2014/09/Mautic_Logo_LB.png

- **Source:** https://github.com/leonardochappuis/mautic-railway
- **Health check:** /s/login
- **Public domain:** Yes

## Documentation

This is a template to 1click deploy Mautic (email marketing solution).

It will spin a MySQL database and connect it to the Mautic docker image deployed.

Configuration should be pretty straight forward.
You can leave it as is and just follow the installation steps at the mautic ui which should be available at the address auto generated by railway after you deploy.

Please don't hesitate to make contributions if you feel the template is lacking!

--------- Update
Deploys [Mautic 7](https://mautic.org) (the latest major version) with a pinned MySQL 9 database.

  `MAUTIC_ADMIN_EMAIL` you provide at deploy time (password is generated. Change it
  after first login, or check the service variables)
- **Automatic database migrations**: redeploying after a template update migrates your
  database to the new Mautic version on boot.
- **Zero-downtime deploys**: a healthcheck keeps the old version serving until the new
  one is ready

## Setup

1. Click Deploy and enter your admin email.
2. Once live, log in at `https:///s/login` with that email and the
   generated `MAUTIC_ADMIN_PASSWORD` (in the Mautic service's Variables tab).
3. Configure your sending email under Configuration → Email Settings.

## Upgrading from an older version of this template (Mautic 4/5)

Your existing variables keep working — the new image understands the old
`MAUTIC_DB_HOST` (`host:port`) and `MAUTIC_DB_NAME` formats. Before applying the update:

1. **Back up your database** (Railway volume backup or `mysqldump`). The jump to
   Mautic 7 migrates your data automatically and worked flawlessly in testing
   (including 4 → 7 directly), but major upgrades deserve a backup.
2. Add a `MAUTIC_URL` variable set to your public URL (e.g. `https://your-domain.com`)
   — older deploys don't have it, and without it Mautic shows the installer.
3. Apply the update and redeploy. Migrations run automatically on boot.
4. **Do not change your existing MySQL service's image version.** Moving an existing
   database to MySQL 9 requires a dump/restore — an in-place image bump can corrupt it.
   Your current MySQL keeps working with Mautic 7 (8.0+ required, 8.4+ recommended).

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — [Jul'26] WhatsApp automation platform using Evolution API, n8n & PostgreSQL
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

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