---
title: "Deploy Mautic 7"
description: "Mautic 7 marketing automation: cron + worker, API email, MariaDB"
category: "Automation"
url: https://railway.com/deploy/mautic-7
---

# Deploy Mautic 7

Mautic 7 marketing automation: cron + worker, API email, MariaDB

**[Deploy Mautic 7 on Railway](https://railway.com/template/mautic-7)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/mautic-7/manifest.json

- **Creator:** talharamzan's Projects
- **Category:** Automation

## Template content

### MariaDB

- **Image:** mariadb:11.4.13@sha256:a8992b5e5404d11e03c54a31d0c1bdea3fd116d283aa6d1a627551f29045309b
- **Start command:** `/bin/sh -c "export MARIADB_DATABASE=${MARIADB_DATABASE:-mautic} MARIADB_USER=${MARIADB_USER:-mautic}; exec docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data --skip-name-resolve"`

### Mautic

- **Source:** TalhaRamzan/railway-mautic-7
- **Public domain:** Yes

### Mautic Worker

- **Source:** TalhaRamzan/railway-mautic-7
- **Start command:** `/bin/sh -c "export DOCKER_MAUTIC_ROLE=mautic_worker; exec /usr/local/bin/railway-entrypoint.sh"`

### Mautic Cron

- **Source:** TalhaRamzan/railway-mautic-7
- **Start command:** `/bin/sh -c "export DOCKER_MAUTIC_ROLE=mautic_cron; exec /usr/local/bin/railway-entrypoint.sh"`

## Documentation

# Deploy and Host Mautic 7 on Railway

Mautic is the leading open-source marketing automation platform: contacts, segments, email campaigns, landing pages, forms, lead scoring and tracking. A self-hosted alternative to HubSpot, ActiveCampaign or Mailchimp.

## About Hosting Mautic 7

This template runs Mautic 7.2 (pinned) as three services from one image: web, cron and a queue worker, plus MariaDB. Settings saved in the UI reach cron and worker automatically, the cron schedule includes segment broadcasts, and HTTP API email transports (Amazon SES, Brevo, Mailgun, Postmark, Resend, SendGrid) are built in, so email works on Railway Hobby where SMTP is blocked. Mautic installs itself on first boot.

## Common Use Cases

- Email newsletters and drip campaigns to your own contact list
- Lead capture forms and landing pages with tracking and scoring
- Replacing HubSpot/ActiveCampaign marketing seats

## Dependencies for Mautic 7 Hosting

- MariaDB 11.4 (included, private network)

### Deployment Dependencies

- Upstream project: https://github.com/mautic/mautic
- Template repo with email setup, upgrade and troubleshooting: https://github.com/TalhaRamzan/railway-mautic-7

### Implementation Details

- Log in at `/s/login` as `admin` with the `ADMIN_PASSWORD` variable on the `Mautic` service, then change the admin email (Account → Profile).
- Email: set `MAILER_DSN` (for example `brevo+api://KEY@default`), `MAILER_FROM_EMAIL` and `MAILER_FROM_NAME` on the `Mautic` service; cron and worker reference them.
- Expect roughly $5–12/month on Railway (~0.5 GB RAM idle).

## Why Deploy Mautic 7 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 Mautic 7 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.

_Unofficial community template, not affiliated with the Mautic project. Mautic is GPL-3.0 licensed._


## 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) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [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/mautic-7
