Back to all templates
Mautic logo

Mautic

Application1024MB+ RAM

Open-source marketing automation platform

marketingautomationemailhubspot-alternative

Deploy Mautic in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Mautic

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Step-by-step deployment guide

Deploy Mautic on a VPS with Server Compass

Use the Mautic template in Server Compass to deploy a self-hosted marketing automation platform with MySQL on your VPS, then verify the Mautic installer in a browser.

About 7 minutesBrowser verified
1
Step 1

Open the server Apps tab

Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Server Compass Apps tab before creating a Mautic app
2
Step 2

Choose an app template

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Choosing to deploy an app from a Server Compass template
3
Step 3

Search for Mautic

Use the template picker search to find Mautic in the Server Compass template catalog.

Searching for Mautic in the Server Compass template picker
4
Step 4

Select the Mautic template

Choose the Mautic template. Server Compass fills in the Mautic web service, MySQL database, generated database passwords, and mapped browser port.

Mautic template selected in Server Compass
5
Step 5

Review the Mautic settings

Confirm the app name and compose services. In this run, the app was named mautic-demo and used host port 8080.

Reviewing Mautic project settings and compose services
6
Step 6

Deploy Mautic

Review the generated environment values, confirm the port is available, and click Deploy Now.

Reviewing Mautic environment variables and port before deployment
7
Step 7

Watch the deployment progress

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Mautic image, starts the container, and verifies the stack.

Server Compass deploying the Mautic template on the VPS
8
Step 8

Confirm Mautic is running

After deployment finishes, return to the Apps tab and confirm the Mautic app is marked Running with its application URL available.

Mautic template running in the Server Compass Apps tab
9
Step 9

Open Mautic in the browser

Open the application URL in a browser. The Mautic installer confirms the marketing automation app is reachable.

The deployed Mautic web UI loaded in a browser

After Mautic Opens

  • Complete the Mautic installer and use database host `db`, database name `mautic`, and user `mautic`.
  • Configure HTTPS, SMTP, cron jobs, tracking settings, and sender domains before production use.
  • Back up the Mautic data and MySQL volumes before relying on campaigns or contacts.

Verified Result

The Mautic installer loaded successfully in a browser.

Mautic deployment questions

What does the Mautic template deploy?

It deploys Mautic with a MySQL database so you can run self-hosted marketing automation, contacts, segments, and campaigns.

Which port did the tutorial use?

The tutorial used host port 8080, which maps to the Mautic web service on container port 80.

Why does the guide stop at the login or setup web UI?

The tutorial verifies the clean Mautic installer because admin account, database setup, email sending, tracking, and cron settings are production-specific setup steps.

Should this become a blog post?

No. The deployment guide should live on the Mautic template detail page and be linked from the reusable template deployment docs page.

Command Line Setup

Install Mautic Manually

Set up Mautic yourself using Docker Compose and the command line.

1

Establish SSH Connection

Connect to your remote server using SSH. Make sure you have your server credentials ready.

terminal
# Log into your server
ssh root@<your-server-ip>

# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>

First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh

2

Create Project Directory

Set up a directory to store your Docker configuration.

terminal
# Create and navigate to project directory
mkdir -p ~/apps/mautic
cd ~/apps/mautic
3

Configure Docker Compose

Add this configuration to your docker-compose.yml file:

docker-compose.yml
services:
  mautic:
    image: mautic/mautic:latest
    ports:
      - "8080:80"
    environment:
      - MAUTIC_DB_HOST=db
      - MAUTIC_DB_NAME=mautic
      - MAUTIC_DB_USER=mautic
      - MAUTIC_DB_PASSWORD=<your-db-password>
    volumes:
      - mautic_data:/var/www/html
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy

  db:
    image: mysql:8.0
    environment:
      - MYSQL_ROOT_PASSWORD=<your-db-root-password>
      - MYSQL_DATABASE=mautic
      - MYSQL_USER=mautic
      - MYSQL_PASSWORD=<your-db-password>
    volumes:
      - mysql_data:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p$$MYSQL_ROOT_PASSWORD || exit 1"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 30s

volumes:
  mautic_data:
  mysql_data:
Configuration Options
PORTHost port(default: 8080)
DB_PASSWORDDB password
DB_ROOT_PASSWORDRoot password
4

Start the Services

Execute the deployment and check the container status.

terminal
# Deploy the application
docker compose up -d

# Check container health
docker compose ps

# Monitor logs
docker compose logs -f --tail=100
5

Allow Incoming Connections

Enable network access by updating your firewall rules.

terminal
# Allow the application port through firewall
sudo ufw allow 8080/tcp
sudo ufw reload

# Access your app at:
# http://your-server-ip:8080
Skip the Terminal

Too complicated? Let Server Compass handle it.

No terminal needed. Deploy Mautic through a visual dashboard with automatic configuration.

  • Intuitive dashboard
  • Deploy in 3 minutes
  • Free SSL included
  • Blue-green deploys
  • Real-time logs
  • Version history
Download Server Compass$29 one-time • Lifetime license

After Deployment

After deploying Mautic with Server Compass, complete these steps to finish setup

1

Complete installation wizard

2

Configure email sending

3

Create campaigns

Need help? Check out our documentation for detailed guides.

Mautic FAQ

Common questions about self-hosting Mautic

How do I deploy Mautic with Server Compass?

Simply download Server Compass, connect to your VPS, and select Mautic from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Mautic?

Mautic requires a minimum of 1024MB RAM. We recommend a VPS with at least 2048MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Mautic data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Mautic backup and restore procedures.

How do I update Mautic to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Mautic image will be pulled and deployed with zero downtime.

Is Mautic free to self-host?

Mautic is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Mautic?

Download Server Compass and deploy Mautic to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass