Docker is a container system that can be used to set up all of the infrastructure needed to run a web site. The below will setup containers locally needed to run a MySQL database and an Apache + PHP web server
All of this will be running on a Linux virtual machine in order to duplicate as close as possible the production hosting environment.