DEV Community

Max Kostinevich
Max Kostinevich

Posted on

How to use Docker for development on local machine

I've used Vagrant and Homestead for local development for last several years, and recently switched to Docker. And I'm super-happy with my current setup, as Docker containers are much easier to setup, and they consume less resources than Vagrant.

If you're wondering how to start using Docker in local development and quickly run Laravel application in Docker container, watch my video tutorial:

A few notes:

  • This Docker template is adopted for Laravel/PHP apps, however feel free to customize it to fit your own needs;
  • This Docker template is used only for development on local machine;
  • You may get Laravel Docker Template on Github;
  • I still use classic VPS/non-dockerized environment on production;

I hope you found this tutorial useful! Any questions or feedback is much appreciated!

Discussion (0)