Railway

Deploy mautic-mysql-worker-cron

Mautic with MySQL plus dedicated worker and cron services.

Deploy mautic-mysql-worker-cron

Just deployed

Just deployed

Just deployed

/var/lib/mysql

Just deployed

/var/www/html/config

Deploy and Host Mautic + MySQL + Worker/Cron on Railway

Deploy Mautic on Railway with a private MySQL database, a public web service, and dedicated cron/worker services.

About Hosting Mautic + MySQL + Worker/Cron

Mautic is an open-source marketing automation platform. This template uses the official Mautic Docker image roles: one web service for the UI, one cron service for scheduled jobs, and one worker service for queued background work.

Why Deploy Mautic + MySQL + Worker/Cron on Railway

Railway provides private networking, persistent MySQL storage, generated credentials, and a public Mautic URL without forcing the deployer to hand-wire the multi-service Docker Compose setup. Cron and worker roles are included so campaigns, segments, and queued jobs are not left as manual follow-up work.

Common Use Cases

  • Self-hosted marketing automation
  • Contact and segment management
  • Campaign and landing-page experiments
  • Internal newsletter workflows
  • Evaluation environments for Mautic

Dependencies for Mautic + MySQL + Worker/Cron Hosting

Mautic depends on MySQL for application data. The official Docker image uses DOCKER_MAUTIC_ROLE to split web, cron, and worker responsibilities.

Deployment Dependencies

  • MYSQL_ROOT_PASSWORD: generated MySQL root password
  • MYSQL_PASSWORD: generated Mautic database password
  • MAUTIC_DB_*: private MySQL connection settings
  • MAUTIC_MESSENGER_DSN_EMAIL: queue transport for email jobs
  • MAUTIC_MESSENGER_DSN_HIT: queue transport for hit jobs

Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
View Template
Prefect [Updated May ’26]
Prefect [May ’26] (ETL & Automation alternative to Airflow) Self Host

shinyduo