This Setup can be used to fast demo magento 2 or as as development enviroment.
The main docker image osioaliu/magento2docker
has all applications (Nginx, PHP, MariaDB, Redis, Elasticsearch) needed to run Magento 2
Do not use due to security on a production server
docker run --rm -dt --name magento2docker osioaliu/magento2docker
docker exec -t magento2docker start
next time just start the server with command: magento2docker
this has additinal cotainers with Mailhog, Watchtower and rabbitmq which you might need in your project commented out
Download https://raw.githubusercontent.com/aliuosio/magento2docker/main/docker-compose.yml
docker-compose up -d # to start all containers
docker compose exec -it main start # to install Magento 2
docker compose exec -it main xdebug # to use xdebug with ide.key magento2docker
http://<ip displayed on your console>/admin
User: mage2_admin
Password: mage2_admin123#T
http://<ip displayed on your console>
-
magento2-gmailsmtpapp
configure Magento 2 / Adobe Commerce to send all transactional emails using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 or any other SMTP servers.
-
yireo/magento2-webp2
This module adds WebP support to Magento 2.
-
dominicwatts/cachewarmer
Magento 2 Site based Cachewarmer / Link checker / Siege Tester
Never use in Production, It's meant to demo or as dev enviroment
Todos:
V1
create db before magento installset webp executable and make sure magento uses itadd redisreduce docker image sizeUse php alpine image as base image
V2
- make configurable app versions