Xdebug with fpm-nginx #176
emilebourquin
started this conversation in
Show and tell
Replies: 4 comments 3 replies
-
Thanks for sharing your guide & helping the community 🙌 |
Beta Was this translation helpful? Give feedback.
0 replies
-
this should be working in v3 images ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Now that install-php-extensions is included in the v3 image, I use this much simpler fpm-nginx_xdebug.dockerfile :
|
Beta Was this translation helpful? Give feedback.
1 reply
-
This feels wrong. If docker php is only meant for production. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To get Xdebug working with the fpm-nginx image, I did this:
If your docker-compose.yml file starts like this:
replace that part with:
In the same directory as docker-compose.yml , create a file named fpm-nginx_xdebug.dockerfile , and put this in it:
and start your Docker containers with this command:
Note: If the lines:
freak you out, you could always manually copy the contents of https://raw.githubusercontent.com/docker-library/php/master/docker-php-ext-enable to a local file named docker-php-ext-enable , have a look at it, and instead of the ADD command, use:
Beta Was this translation helpful? Give feedback.
All reactions