My PHP application runs in docker. My IDE is PhpStorm. I configured like this:
My Docker configuration contains:
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
and docker-compose.yml contains like:
environment:
-XDEBUG_CONFIG: "remote_host=192.168.0.111 idekey=phpstorm"
-PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
And I run my docker as;
docker-compose up.
When I access a page, it is not hitting my breakpoints.
What setting I miss here?
Debug setting in PhpStorm:

