Skip to content

Instantly share code, notes, and snippets.

@sanglt
Created September 26, 2016 06:33
Show Gist options
  • Save sanglt/5f1eb53c50d47ff2a8f38cbf195c627b to your computer and use it in GitHub Desktop.
Save sanglt/5f1eb53c50d47ff2a8f38cbf195c627b to your computer and use it in GitHub Desktop.
xdebug:
build: .
environment:
XDEBUG_CONFIG: remote_host=10.254.254.254
volumes:
- ./www:/var/www/html
ports: ["80"]
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