Deploy mautic-mysql-worker-cron
Mautic with MySQL plus dedicated worker and cron services.
mautic-cron
Just deployed
mautic-worker
Just deployed
mysql
Just deployed
/var/lib/mysql
mautic-web
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 passwordMYSQL_PASSWORD: generated Mautic database passwordMAUTIC_DB_*: private MySQL connection settingsMAUTIC_MESSENGER_DSN_EMAIL: queue transport for email jobsMAUTIC_MESSENGER_DSN_HIT: queue transport for hit jobs
Template Content
mautic-cron
mautic/mautic:5-apacheMAUTIC_DB_HOST
MAUTIC_DB_PORT
MAUTIC_DB_USER
DOCKER_MAUTIC_ROLE
MAUTIC_DB_DATABASE
MAUTIC_DB_PASSWORD
MAUTIC_VOLUME_LOGS
MAUTIC_VOLUME_MEDIA
MAUTIC_VOLUME_CONFIG
MAUTIC_MESSENGER_DSN_HIT
MAUTIC_MESSENGER_DSN_EMAIL
PHP_INI_VALUE_MEMORY_LIMIT
mautic-worker
mautic/mautic:5-apacheMAUTIC_DB_HOST
MAUTIC_DB_PORT
MAUTIC_DB_USER
DOCKER_MAUTIC_ROLE
MAUTIC_DB_DATABASE
MAUTIC_DB_PASSWORD
MAUTIC_VOLUME_LOGS
MAUTIC_VOLUME_MEDIA
MAUTIC_VOLUME_CONFIG
MAUTIC_MESSENGER_DSN_HIT
MAUTIC_MESSENGER_DSN_EMAIL
PHP_INI_VALUE_MEMORY_LIMIT
mysql
mysql:ltsMYSQL_USER
MYSQL_DATABASE
MYSQL_PASSWORD
MYSQL_ROOT_PASSWORD
mautic-web
mautic/mautic:5-apachePORT
MAUTIC_DB_HOST
MAUTIC_DB_PORT
MAUTIC_DB_USER
DOCKER_MAUTIC_ROLE
MAUTIC_DB_DATABASE
MAUTIC_DB_PASSWORD
MAUTIC_VOLUME_LOGS
MAUTIC_VOLUME_MEDIA
MAUTIC_VOLUME_CONFIG
MAUTIC_MESSENGER_DSN_HIT
MAUTIC_MESSENGER_DSN_EMAIL
PHP_INI_VALUE_MEMORY_LIMIT
DOCKER_MAUTIC_LOAD_TEST_DATA
