
Deploy Mautic
[2026-08-11] - Updated(backup pls) - Largest OSS marketing automation proj.
MySQL
Just deployed
/var/lib/mysql
Just deployed
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 (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
- Click Deploy and enter your admin email.
- Once live, log in at
https:///s/loginwith that email and the generatedMAUTIC_ADMIN_PASSWORD(in the Mautic service's Variables tab). - 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:
- 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. - Add a
MAUTIC_URLvariable set to your public URL (e.g.https://your-domain.com) — older deploys don't have it, and without it Mautic shows the installer. - Apply the update and redeploy. Migrations run automatically on boot.
- 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).
Template Content
MySQL
mysql:9MAUTIC_ADMIN_EMAIL
Admin login email — mark as required input on deploy
MAUTIC_DB_SERVER_VERSION
Leave empty to auto-detect; set e.g. 9.7 only to skip Doctrine's version probe
