
This was actually the main reason it took me so long to start working with Docker. Thus, we will not be able to use Vagrant and Docker alongside each other. The native Docker client requires Hyper-V to be activated which in turn will cause Virtualbox to not work any longer. This tutorial will only look at the latter.Ī word of caution: Unfortunately, we cannot have other Gods besides Docker (on Windows). (which is essentially a VM with Docker setup on it) or the Hyper-V based Docker for Windows. On Windows, you can either use the Docker Toolbox Is something that should happen on production anyway. having a dedicated server for your database) which - again. It makes the separation of services really easy (e.g. Windows)īut run the code in the same environment as it will in production (e.g. In general, Docker is kind of like a virtual machine, so it allows us to develop in an OS of our choice (e.g. I wanted to learn Docker for quite some time because you hear a lot about it Setup in the team involved a lot of work VMs become bloated and hard to manage over time Symlinks in vagrant didn't work the way they should I won't go into too much detail what Docker is and why you should use it, because See Setting up the software: Git and Git Bash. I'm assuming that you have installed Git bash for Windows. Putting it all together: Meet docker-compose.Setting up a web stack with php-fpm and nginx.Persisting image changes with a Dockerfile.To get automatic notifications when the next part comes out :) Table of contents If you want to follow along, please subscribe to the RSS feed Setting up PhpStorm with Xdebug for local development on Docker. Part_1_setting-up-php-php-fpm-and-nginx-for-local-development-on-docker.Īll published parts of the Docker PHP Tutorial are collected under a dedicated page atĭocker PHP Tutorial. how to find out where the configurationįiles for php-fpm are located), but that are imho important to understand, because they enable you toīut if you are short on time, you might also jump directly to the tl dr.Īll code samples are publicly available in myĭocker PHP Tutorial repository on Github. Some things that are not completely related to docker (e.g.

Note: I will not only walk on the happy path during this tutorial.

how docker-compose can be used to fit everything nicely together


how to log into containers and explore them for information how to build and run containers from the command line how to set up Docker "natively" on a Windows 10 machine Then this tutorial is for you! By the end of it, you should know: You are a PHP developer and would like to get into that, but you didn't have the time to look into it, yet? You probably heard from the new kid around the block called "Docker"?
