E
E
egor_spk2017-03-15 00:08:48
Nginx
egor_spk, 2017-03-15 00:08:48

How to reach phpstorm'om xdebug, which is in the docker container of the guest machine?

In general, there is a guest vmware machine ubuntu server. Docker is running on this guest machine with images: nginx, php-fpm (xdebug is installed here), mysql. They are all on the 172.72.8.0/24 subnet. The guest machine itself has an nginx reverse proxy that redirects all requests to this subnet (nginx container).
Between host and guest NAT machines. Accordingly, I access the site using ip 192.168.244.134.
How can I get to xdebug from under phpstorm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bamond, 2017-03-21
@bamond

Try to tunnel to the host from your machine (you have port 9000 thrown from the container to the host machine)
ssh -R 9000:localhost:9000 [email protected]
and connect to hdebug via localhost from your computer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question