A simple docker configuration to run an environmnet of Magento 2.
This docker configuration was tested usin Magento 2.4.6. If do you wish to run other version, please, change the configuration files befere start.
git clone [email protected]:hugodeaguiar/docker-magento2.git
cd docker-magento2
In the docker-compose file, change volume configuration path to your Magento.
docker-compose up
If is your first time running, do you need to access the container and run the Magento setup.