Unattended Install via Command Line

Hi all



We are working on a new docker Mautic image.



Right know with are able to install Mautic in the first instance as usual: manual mode via the web install … Now, to scale to more instances we need to rework the script and make a silent install passing the configuration parameters (DB_HOST, DB_NAME, DB_USER, DB_PASSWORD, LOCAL.PHP … ???)



Any ideas on how to achieve this?

Hi all

We are working on a new docker Mautic image.

Right know with are able to install Mautic in the first instance as usual: manual mode via the web install … Now, to scale to more instances we need to rework the script and make a silent install passing the configuration parameters (DB_HOST, DB_NAME, DB_USER, DB_PASSWORD, LOCAL.PHP … ???)

Any ideas on how to achieve this?

I’m looking for the same information. Did you ever find a solution?

Are you trying to do a Mautic Cloud Clone?

I was interested in the same thing for local testing.
Found a better way:

php app/console doctrine:database:create
php app/console mautic:install:data --force
php app/console doctrine:migrations:version --add --all --no-interaction

To recap, the first line creates the database (based on the app/config/local.php file).
The second inserts the default schema and data, AND creates the primary users.
The third updates the migrations table so that future updates won’t choke.