DEV Community

Discussion on: Building a simple PHP dockerized environment

Collapse
 
ninhnd profile image
Dang Ninh

Docker is there with vast application but still some people prefer "easier" method to setup php environment like using AMP packages, especially beginners. What do you think about this?

Collapse
 
alexandrunastase profile image
Alexandru Năstase

I mean it depends on people's needs also. If you want to do a simple hello world to try things out, the classic setup can be enough. But in my experience, if you want to have a common setup between multiple people, eventually have a CI/CD pipeline, a production environment, and debugging working out of the box, a Docker setup might be a better choice. Plus, if you're on a Linux/Mac environment, the only prerequisites one would need would be to install docker, docker-compose, and make. That's it. You do make run && make install, and everything is set up. Seems quite simple to me and the advantage of having a reproducible environment is quite big I would say, especially when you are a beginner and you might need some assistance here and there.