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!

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →