nezhar / wordpress-docker-compose

Easy Wordpress development with Docker and Docker Compose
MIT License
1.84k stars 1.31k forks source link

[Feature Request] Build XDebug into PHP config? #16

Open jschrab-lc opened 5 years ago

jschrab-lc commented 5 years ago

Would it be within the goals of the project to have XDebug be part of the PHP configuration? Or is there intention for this container configuration to be used for production purposes too?

Or has someone done this on their own already and have a few bullet points to share on how to set it up?

nezhar commented 5 years ago

The containers are for development, XDebug would be a great integration. It is also not that complicated, I have an old gist here: https://gist.github.com/nezhar/27bddc6cc44a3e2e44819bd8dcbc289c

The documentation should be also extended in this case.

mwoodpatrick commented 4 years ago

Any ETA for this it would be very handy

PiotrCzapla commented 2 years ago

I've build add xdebug, wpcli and few other tools and wrapped this as vscode .devcontainer, feel free to try it: https://github.com/PiotrCzapla/vscode-wordpress

There is as well a Dockerfile that installs all the necessary tools along with the XDEBUG. https://github.com/PiotrCzapla/vscode-wordpress/blob/main/.devcontainer/Dockerfile

You can try to use it if you don't want to use vscode.