A brief introduction on how to run Magento 2 within docker. This slides explane how to install Magento 2 with composer, boot up all needed docker containers and run them on your local environment. This slides were presented at the magento-meetup-wien.
2. Andreas Pointner
● Business Informatics @ JKU
● Magento Developer since 2008
● Certification 2014
github.com/copex
hub.docker.com/u/copex/
copex.io 2
3. Docker
● Containerize
● Use the same container in
○ Production
○ Staging
○ Development
● Scalable
● Limit ressources
● Link the containers with docker-compose
3
4. Why Docker?
● No data overhead compared to vagrant
● No rsync or nfs-mount needed for development environment
○ Union File System
● Extremely fast development and environment setup
● Same behaviour everywhere
● Server provisioning becomes unnecessary
● Roll out tested server updates within seconds to all your clients
● Ability to cluster containers across multiple servers
● Test very complex server setup locally
4
5. Which containers do we need?
● APP
○ PHP-FPM
○ Nginx (Apache)
● Mysql (Mariadb)
● Cron ?
● Redis ?
○ Cache
○ Session
● Varnish ?
5