Created
September 26, 2016 06:33
-
-
Save sanglt/5f1eb53c50d47ff2a8f38cbf195c627b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug: | |
build: . | |
environment: | |
XDEBUG_CONFIG: remote_host=10.254.254.254 | |
volumes: | |
- ./www:/var/www/html | |
ports: ["80"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7-apache | |
RUN pecl install xdebug && docker-php-ext-enable xdebug && echo "xdebug.remote_host=10.254.254.254\nxdebug.remote_enable=1\nxdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment