Docker environment for Magento 2 projects. Please visit our Dockerhub repository.
- Nginx:
1.18
- PHP:
7.2
,7.3
,7.4
,8.1
,8.2
- MariaDB:
10.2
,10.3
,10.4
,10.6
- RabbitMQ:
3.9
- Redis:
5.0
,6.2
,7.0
- ElasticSearch:
5.6
,6.5
,7.17
- OpenSearch:
1.2
,2.5
- Mailhog:
1.0
- Varnish:
6.0
,7.1
- Hitch:
1.7
- Magento 2.4:
2.4.0
,2.4.1
,2.4.2
,2.4.3
,2.4.4
,2.4.5
,2.4.6
. - Magento 2.3:
2.3.0
,2.3.1
,2.3.2
,2.3.3
,2.3.4
,2.3.5
,2.3.6
,2.3.7
.
(All patched versions are also compatible)
Hiberus CLI requires the next dependencies.
After installing these dependencies, launch the next command
curl https://raw.githubusercontent.com/hiberus-magento/hiberus-dockergento/main/installer.sh | bash
- You can execute the following command to create a Docker environment for an existing project (from the project directory).
cd <your_project>
hm setup
- If you want the docker config files to be outside your project not to be tracked by git.
cd wrapper_folder
hm setup
Answer this question with the relative path of your project.
Magento root dir: <your_project>
This will be the result
./wrapper_folder
|__ config/
|__ docker-compose.yml
|__ docker-compose.dev.linux.yml
|__ docker-compose.dev.mac.yml
|__ <your_project>/
|__ app/
|__ ...
You can launch following command to create a Docker environment for a new project (from a new empty directory).
hm create-project
create-project command documentation
You can launch the following command to import database and to save configs after import process.
hm mysql -i /path/.../dump.sql
You can see all available commands by launching the following command.
hm --help
or specific command
hm setup --help
- bash
- cloud-login
- cloud
- compatibility
- composer
- config-env
- copy-from-container
- copy-to-container
- create-project
- debug-off
- debug-on
- docker-compose
- docker-stop-all
- down
- exec
- grunt
- install
- magento
- masquerade
- mysql
- mysqldump
- n98-magerun
- npm
- purge
- rebuild
- restart
- set-host
- setup
- ssl
- start
- stop
- test-integration
- test-unit
- transfer-db
- transfer-media
- update
- varnish-off
- varnish-on
- This project is based on Dockergento. Special thanks to ModestCoders for their work.
- Several improvements have been inspired on Docker-magento.