This is a bare minimum Docker based environment to deploy Magento 2 commerce edition.
- Running Docker daemon
- User is in docker group
- Composer is set up with credentials in
~/.config/composer
In the bin folder you'll find various scripts:
scripts/magento-create-project.shCreates the Magento project using Composer.scripts/magento-delete-project.shDeletes the Magento project including all files.scripts/magento-delete-generated.shDeletes the Magento generated files.scripts/magento-install.shInstalls Magento with a basic configuration.scripts/magento-install-sampledata.shInstalls Magento sample data.scripts/docker-compose-delete.shStops running containers and removes all containers.scripts/mysql-import.shImports the provides mysqldump into the database.
In order to do a clean installation you have two options:
./scripts/magento-setup.sh 2.3.6 magento.localhostThis will execute these commands in the following order:
./scripts/docker-compose-delete.sh
./scripts/magento-delete-project.sh
./scripts/magento-create-project.sh 2.3.6
./scripts/magento-install.sh magento.localhost
./scripts/magento-install-sampledata.shOr you can execute these single commands to your liking.
To access the Magento CLI run following command:
bin/magento
bin/mysql
bin/mysqldump
Go to http://MAGENTO_BASE_URL/admin with username admin and password admin123_
- RabbitMQ:
http://MAGENTO_BASE_URL:15672/with username and passwordmagento - Mailhog:
http://MAGENTO_BASE_URL:8025/with no credentials - Kibana:
http://MAGENTO_BASE_URL:5601/with no credentials