Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

James_Moore's avatar

Laravel Docker setup

Does anyone know of an up to date tutorial or a series that could get me up and running with a docker container. Coming from 0 docker knowledge, just wanna get a demo for my team to see if its worth switching from vagrant, hoping to potentially solve our problem of longnpm run dev times/npm run watch, considering we dont get them when using our personal development environments that dont use vagrant virtualization. Thanks !

0 likes
3 replies
martinbean's avatar
Level 80

@james_moore Start with the Docker tutorial to get familiar with Docker and its commands: https://docs.docker.com/get-started/

Then take a look at https://serversforhackers.com. It’s a good resource on using Docker with PHP projects.

I don’t know what OS you’re using but if you’re using macOS, be prepared for a lot of pain. Docker on Mac is very slow; much slower than Vagrant. I’m sure there are ways to get it to run faster, but I’m not an expert with Docker so will leave that to someone else to cover.

1 like
ohffs's avatar

Ontop of the serversforhackers link - the two courses by Bret Fisher on udemy are pretty good and only US$10 at the moment :

https://www.udemy.com/docker-mastery/

https://www.udemy.com/docker-swarm-mastery/

There's a bit of overlap between the two courses - the first one is probably best if you're coming from zero I guess :-). It does cover some of the tweaks you can make on Mac/Windows to speed things up too - as per @martinbean 's comment about it being slow.

1 like
James_Moore's avatar

At the moment this would be for a windows environment, we currently in a waiting period for whether or not we get macbook pros. I have a feeling well end up with new Windows machines though and using vagrant is just to much of a pain when doing any Vue things with our current setup. Thanks for reply's guys ! much appreciated.

Please or to participate in this conversation.