This article was Contributed by Sascha Eggenberger
Visit his Website at: https://saschaeggi.medium.com/
Original article: Setup Mautic with lando & composer
You can also easily checkout this repo and just
lando start to spin it up: https://github.com/saschaeggi/mautic-lando-starterkit
Two setup a Mautic instance using Lando and Composer, you will need:
composer create-project mautic/core YOURPROJECTNAME ^3 --no-dev
You need to replace "YOURPROJECTNAME" with the name of the projects folder.
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
This will create the needed docker containers (can take a while).
Once the containers are up and running we can access https://mautic.lndo.site/
Let’s open your Mautic site at: https://mautic.lndo.site/
You should see now the following screen:
Set Database settings to use the following:
We set to use the mailserver to be the mailhog docker container:
You can now login to your freshly installed Mautic setup with the credentials from the previous step.