php:
image: TODO
volumes:
- ./:/var/www/htmlCopy the contents of the xdebug.ini.example file in this repo to an xdebug.ini file in your project (edit according to your OS), then mount it to the right place in your docker-compose.yml file:
php:
image: TODO
environment:
PHP_IDE_CONFIG: "serverName=PHPSTORM"
volumes:
- ./:/var/www/html
- ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.iniFor usage with PhpStorm, view the official documentation.