title: PhpStorm not connecting to Docker container Xdebug
body: <p>I am currently really struggling with PhpStorm, Docker and Xdebug to get them working together.</p>
  
  <p>I installed Xdebug in a PHP container with the following Dockerfile and yaml file, which are exactly the same on the following website: <a href="https://blog.philipphauer.de/debug-php-docker-container-idea-phpstorm/" rel="nofollow noreferrer">https://blog.philipphauer.de/debug-php-docker-container-idea-phpstorm/</a>.</p>
  
  <p>After correctly verifying the configuration in PhpStorm (see screenshot), I started the Debug Session in PhpStorm. After using the Xdebug helper in Chrome, I started a new request. Although everything looks fine, PhpStorm does not stop on the breakpoints.</p>
  
  <p>I really do not know where the problem occurs. Trying to log did not help and setting a remote IP or just the connect_back option in xdebug did not solve the problem.</p>
  
  <p>Thanks for your help!</p>
  
  <pre><code>FROM php:7.0.19-apache
  
  RUN apt-get update &amp;&amp;\
  apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git &amp;&amp;\
  rm -rf /var/lib/apt/lists/*
  
  RUN pecl install xdebug-2.5.5 &amp;&amp; docker-php-ext-enable xdebug
  RUN echo 'zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so"' &gt;&gt; /usr/local/etc/php/php.ini
  RUN echo 'xdebug.remote_port=9000' &gt;&gt; /usr/local/etc/php/php.ini
  RUN echo 'xdebug.remote_enable=1' &gt;&gt; /usr/local/etc/php/php.ini
  RUN echo 'xdebug.remote_connect_back=1' &gt;&gt; /usr/local/etc/php/php.ini
  
  version: '2'
  services:
    apache_with_php:
      build: .
  volumes:
    - ./src:/var/www/html/
  ports:
    - "80:80"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TkEkB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TkEkB.png" alt="Test succeeded"></a></p>