Skip to content

Instantly share code, notes, and snippets.

@Seiger
Created December 5, 2023 18:48
Show Gist options
  • Save Seiger/05b674ae2e59b160b7a6ec7c26b8e4de to your computer and use it in GitHub Desktop.
Save Seiger/05b674ae2e59b160b7a6ec7c26b8e4de to your computer and use it in GitHub Desktop.
Run Evolution CMS 3.x in Docker

Quick installation of Evolution CMS 3.x via Docker

Prepare

Go to You directory and run install Evolution CMS via Composer.

composer create-project evolutioncms/evolution:3.2.x-dev . --remove-vcs

Important

If you get the error "Install of evolutioncms/evolution failed" during the installation, one of the reasons may be the timeout of long scripts. To solve this, you can pass the COMPOSER_PROCESS_TIMEOUT variable when executing the script. This method provides a quick way to change the default timeout value for a particular execution.

COMPOSER_PROCESS_TIMEOUT=600 composer create-project evolutioncms/evolution:3.2.x-dev . --remove-vcs

The next step is to create a configuration for docker compose using the command:

php core/artisan salo:install

And run the Docker build and up:

php core/artisan salo:build
php core/artisan salo:up

Note

Usually, the salo:build command is used when Docker is first started.

Use it php core/artisan salo:up to start the project.

Use it php core/artisan salo:down to stop the project.

Installation

Go to You container with Container name e.x.: "evo4docker". You can see full name Container when run Docker compose.

docker exec -it evo4docker-evo.php-1 bash

The next step go to install path:

cd install

And run the install command.

php cli-install.php --typeInstall=1 --databaseType=mysql --databaseServer=mysql --database=evo --databaseUser=homestead --databasePassword=password --tablePrefix=evo_ --cmsAdmin=admin --cmsAdminEmail=admin@admin.ua --cmsPassword=password --language=en --removeInstall=y

Warning

You should use your own parameters for the variables --cmsAdmin, --cmsAdminEmail and --cmsPassword

Delete artifacts

Delete unused folders and files:

  • vendor/
  • composer.json
  • composer.lock
  • config.php.example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment