Setup Mautic with lando & composer

Requirements

  • lando
  • composer

Install Mautic via composer

composer create-project mautic/core YOURPROJECTNAME ^3 --no-dev

Lando

Config

Create .lando.yml with the following content:

name: mautic
recipe: lamp
config:
webroot: .
php: '7.3'
database: mysql:5.7
tooling:
mt:
service: appserver
description: Run Mautic commands
cmd: bin/console
proxy:
mailhog:
- mail.mautic.lndo.site
services:
appserver:
type: php
build_as_root:
- docker-php-ext-install sockets
xdebug: true
config:
php: .lando/php/php.ini
database:
type: mysql:5.7
portforward: true
creds:
user: mautic
password: mautic
database: mautic
mailhog:
type: mailhog
portforward: true

Build containers

lando start

Let’s setup Mautic

Let’s open https://mautic.lndo.site/
You should see now the following screen:

Step 1

Set Database settings to use the following:

Step 2

Setup your admin user:

Step 3

We set to use the mailserver to be the mailhog docker container:

Login

You can now login to your freshly installed Mautic setup with the credentials from the previous step.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sascha Eggenberger

Sascha Eggenberger

Sascha Eggenberger. Senior Product Designer @GitLab. Drupal Core Maintainer. Drupal Design System, Claro, Gin. #OpenSource https://sascha.is/