Understanding Storm + Docker

Migrating from vscode to phpStorm and I'm also a Docker newbie. I have some confusion in general regarding Docker and a little more confusion when it comes to Storm's Docker tools. Most of my php projects are launched as I follow along with a tutorial form udemy.com, so I might have 3 or 4 php projects in 3 or 4 separate directories at a time. When I FINALLY got VsCode+Xdebug+Docker to all work together with one of my projects, from then forward I would just copy the docker-compose.yml, Dockerfile files and the .vscode directory to any other php project I wanted to work in and be able to debug using vscode, and when launching the project I would just cd into that directory and run ‘docker-compose up’. My concern is that I think I'm needlessly eating up hard drive space creating every time I copy these files to a new project and run 'docker-compose up' as I think I'm duplicating large images/containers (still don't have the difference between the two firmly embedded in my mind), and if I'm right, I'm not sure about the best way to solve that problem.

Storm has built in Docker tools which just adds another layer to my confusion. Via ‘Services’ at the bottom of storm I can double click Docker and see Containers & Images but I don't know what to do with them, is anything I can do here different than when I cd into my project and run ‘docker-compose up’? In this attached image, the Server dropdown shows Docker, and if were to click on the drop down (screen shot would not capture with dropdown dropped) you would see two other php udemy lesson projects that I've started. Any help in clearing all this would really be appreciated.

Also, I already have xdebug installed and I have it setup viea my Dockerfile and my docker-compose.yml files, what's different about setting it up here?

0

Please sign in to leave a comment.