When you followed this installation instruction, you will get a functional development environment.
#PHPSTORM DOCKERFILE INSTALL#
You don't need to install apache, php or mysql on the computer to run this development environment! The only requirement is to install Docker (see below).Īll you need to install is Docker and PhpStorm! You don't need to install a LAMP-Stack or something else. Im also sure you can adapt my explanations to other development tools, too. I also use PhpStorm ( ) for development so I describe it from this point of view. But I am sure it will run on Mac and Windows in a similar way.
![phpstorm dockerfile phpstorm dockerfile](https://resources.jetbrains.com/help/img/idea/2021.2/ps_DockerComposeScaleService.png)
As I am on Linux, it was developed and tested on Linux. I investigated Docker and created a checklist and some scripts to create Docker-based Drupal development environments and to interact with Docker containers. You can even copy whole development environments from one machine to another or only share the settings of a development environment with others. With Docker you can create containers holding project specific data while they depend on common images. But my servers in the wild (aka Internet) are still running on PHP 5.6! So I decided to remove all the Apache, PHP and Mysql stuff from my machine and installed Docker. And what did I get? I got PHP 7.0 and lost my PHP 5.6 installation.
#PHPSTORM DOCKERFILE UPDATE#
I was very curious to update my computer from Kubuntu 15.10 to the latest Kubuntu 16.04. Let me explain by an example why this could be a problem: All of these are available on development machines. The first question you could ask would just be this: "Why in the hell should I use docker? I have a development machine running Apache and PHP and Mysql.
![phpstorm dockerfile phpstorm dockerfile](https://i.ytimg.com/vi/bWbXMy_mxxE/maxresdefault.jpg)
![phpstorm dockerfile phpstorm dockerfile](https://resources.jetbrains.com/help/img/idea/2021.2/ps_DockerSettings.png)
So some of the comments below become outdated. I have rewritten the Docker based development environment to use the images provided by Docker4Drupal ( ).