In the PHPStorm small changes were required the server needed to be renamed to jo and the mappings to /var/you need to rebuild it with this: docker-compose up -build In the end, I went straight to docker-compose.yml and changed this: fpm:
Take a note at the _ Install Xdebug_ section. The Docker on Windows stack has roughly the same approach as Docker on OSX, with the only difference that Windows’s native HyperV virtual machine is used to run a small VM.
& echo "xdebug.remote_connect_back=1" > /usr/local/etc/php/conf.d/xdebug.ini \ Provided are Drupal 7 and Drupal 8 versions of the official Drupal containers with XDebug, Composer, and Drush installed, specifically for use with PHPStorm. zendextensionxdebug.so xdebug.remoteenable1 xdebug.remoteconnectback0 .localhost xdebug.remoteport9000 Docker on Windows. & echo "xdebug.remote_port=9000" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.idekey=PHPSTORM" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.remote_autostart=off" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.remote_enable=on" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ Mv composer.phar /usr/local/bin/composer & \
with-freetype-dir=/usr/include/freetype2 \
RUN apt-get update & apt-get install -y libfreetype6-dev libjpeg-dev libpng-dev libfontconfig1 libxrender1 git libmcrypt-dev zip mysql-client & \ #RUN printf "deb jessie main\ndeb-src jessie main\ndeb jessie/updates main\ndeb-src jessie/updates main" > /etc/apt/sources.list # Set to keep file permissions same as host for mounted volume I started changing files fpm.docker: FROM php:7.1.18-fpm PHPStorm + Docker + PHPUnit + Xdebug Report this post Hernan Arregoces Hernan Arregoces Senior Software Engineer Published + Follow Welcome to a step by step article that is going to. Real example on my computer: /var/www/html/jobsoutsource (dev) $ docker-compose exec fpm hostname -I To get the IP I used this syntax: docker-composer exec hostname -I to setup xdebug inside your docker container and connect it with PHPStorm. PhpStorm, Xdebug, Docker & Mac Your Docker containers will have an IP address beginning (each container gets it’s own check what it is ) You might assume that’d be enough to avoid conflicts with your real IP address or 127.0.0.1 when specifying xdebug.remotehost. I just want to help out a bit how I managed to set it up with my client's docker. Debug PHP in Docker with PHPStorm and Xdebug Raw README.md Debug your PHP in Docker with Intellij/PHPStorm and Xdebug For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Yeah, if you want to use a tool like xdebug (here is a great tutorial about.