Skip to content
Testing Xdebug within Docker
PHP
Branch: master
Clone or download
Latest commit 860f88a Sep 7, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
nginx
php
.gitignore
README.md
docker-compose.yaml

README.md

docker-xdebug-test

Testing Xdebug and php-fpm within Docker.

Setup

Edit docker-compose.yaml and set the XDEBUG_CONFIG env var to point to your Docker host's IP.

In your OS's hosts file, point php-docker.local to your Docker host (most likely 127.0.0.1).

Run

docker-compose up -d

Head to http://php-docker.local:8080/ or http://php-docker.local:8080/phpinfo.php

Xdebug is configured on port 9004.

You can’t perform that action at this time.