Configure a perfect Drupal development environment on local machine ( Windows )


For Docker Desktop, you need to install a supported Windows operating system in which you must need to enable "Hyper-V", "Container" and "Hardware Virtualization" features in BIOS settings.

See also Virtual Machine development environments and Docker Development Environments which can run on Windows as well.

Then visit here and create an account and download the “Docker Desktop Installer.exe” file and then run the installer

When the Docker has been installed successfully then please opens “Docker Desktop”, You can see the whale icon in the status bar, when you move the cursor over this icon it shows the docker current status. After some time it gives the message that the Docker desktop is up-and-running, and now it can be accessed from any terminal window.

Now the docker has been installed successfully on your system.

Install some additional tools that helps in the use of Docker.

For use the git bash in Visual Studio Code, you need to configure the user preferences settings.

Press Ctrl+Shift+p and click on "Preferences: Open User Settings" and then go to the Features terminal section and edit the Windows setting

"": "C:\\Program Files\\Git\\usr\\bin\\bash.exe"

Integrate External Shell

Now go to the terminal menu and open a new terminal and choose the default shell "bash" for Docker.

Then you can install the container to run these commands “docker-compose up –d”

Note: For older Windows version you need to install Docker Toolbox to run the the Docker

I have a Bitbucket environment where docker has already setup, so I have just clone all the files on my local and run the docker command.

$ git clone

Update container names in app/docker-compose.yml file.

Copy sample file into .env and modify it.

$ cp app/ app/.env

Start Docker.

$ docker-compose up -d

SSH into Drupal container.

$ docker-compose exec drupal bash

Install packages.

$ apt install zip unzip

Install Drupal

$ composer install

Import Config

$ drush cim

Now visit your site here http://localhost:8080


Add new comment