

docker-in-docker - This is a wrapper around docker on our machine into the docker environment, allowing the use of docker inside docker containers.workspace - This is a wrapper around the code on our machine into the docker environment, allowing access to our code inside the docker containers.php-fpm - This is the main interpreter for the PHP code.The project I was working on was a very simple rest API that has very few dependencies, for this project we use these Laradock containers: The first thing that we need to do is configure a few items in the Laradock project for our project. These docker containers are all available via the open source GitHub repository laradock/laradock. Laradock is a collection of docker containers that can be run to create a connected PHP environment that is isolated from your machine, so you do not need to worry about the native requirements of the extensions. I have naturally been using docker containers for pretty much all services for several years now, but I had never used it in this way for development.


Some of the other developers on the team, who have more experience in the PHP world that I have moved to a more modern way of developing PHP by using docker containers. So naturally I was apprehensive of the native extensions and requirements to get the PHP environment running. It had been many years since I had touched a PHP API, and was several OS reinstalls and at least 1 laptop ago. Recently I had to touch one of our older APIs that is running in PHP.
