Dockerizing Drupal
gaurav.goyal
mukesh.agarwal17
The biggest challenge for any web development agency is to kickstart project development with the same environment configurations across dev and local servers. While searching for an efficient solution to this situation we landed on Docker. With environment portability gaining popularity, Docker has became a favorite and in our experience with it we can say that Docker is freakishly awesome! It's super fast and very easy to setup.
Our main goals were:
- Easier local instance setups i.e. faster kickstart with any project, any developer.
- Consistent environment for all instances - local, dev, staging and production
- Increase in productivity by improving our development and deployment processes
- Improvement in quality by creating automated test environments based on docker scripts.
- Isolation and security - When we run any process inside container it is independent from the host, which provides additional security.
What this session will contain:
- Understand Docker
- Difference between docker and VM
- DockerFile and Image Building
- Complete Drupal setup using micro services and containers
- Ubuntu
- PHP FPM
- Apache
- Mysql
- Memcache
- Persistent logs and mysql database
- Deployment with Docker containers
- Initialize whole environment with one single command
- Setting up different environments
Disclaimer: We’re yet to use Docker on production as we are not certain of how a live site will react with different types of logs and statistics enabled.