PhpStorm+Docker Dev
My Typical Laravel Docker skeleton.
Remote Debug
Dockerfile should install xdebug
Also should enable and config xdebug in php.ini
This is Xdebug 2.x version settings:
This is Xdebug 3.x version settings:
Nginx Dockerfile config
should expose a correct port EXPOSE 8080
docker-compose.yml
PHPStorm Config
PHP interpreter


Language&Frameworks->PHP->Servers

Final Check
docker-compose up,
set breakpoint, click "Start Listening to PHP Debug Connection", access web application or call api, see if it works.
Last updated
Was this helpful?