Docker is a tool that created to make it much more easier to create, deploy, and run applications by using containers that you created by your own desires. When you create a docker setup for your project, your team only will install docker and after build containers, it’s all be fine for magic.
Then if you don’t have docker in your system you need to go https://docs.docker.com/get-docker/ address and download docker for your operating system.
We need to create docker-compose.yml file for this: In this config file we firstly specify which docker version will be used.
In this config we say, in order to build our PHP image use Dockerfile, and in our project’s src folder links to var/www/app.