How to use docker with drupal and drush?

Posted by Prem Tiwari | Updated on

Want to use docker with drupal and drush? I got the drush image to work on the local docker network so it seemed simpler to me to bundle drush via composer with the drupal image.

Add below code in Dockerfile:

Add the below code in docker-compose.yml:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers