Skip to content

Commit

Permalink
Move xdebug config in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Aug 28, 2018
1 parent 5249f37 commit b69f95c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions docker-compose.dev.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.1"

services:
php-fpm:
environment:
XDEBUG_CONFIG: remote_host=host.docker.internal
volumes:
- "./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/98-xdebug.ini"
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ services:
working_dir: /application working_dir: /application
volumes: volumes:
- .:/application - .:/application
# To enable xdebug, copy this file to docker-compose.override.yml and uncomment the following line - ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
#- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
links: links:
- beanstalkd - beanstalkd
- mailhog - mailhog
Expand Down
2 changes: 0 additions & 2 deletions docker/php-fpm/php-ini-overrides.ini
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,4 @@
zend_extension=/usr/lib/php/20170718/xdebug.so
xdebug.remote_enable = On xdebug.remote_enable = On
xdebug.remote_host = 10.254.254.254
xdebug.remote_autostart = On xdebug.remote_autostart = On
xdebug.remote_connect_back = Off xdebug.remote_connect_back = Off
;xdebug.profiler_output_dir = "/var/www/html" ;xdebug.profiler_output_dir = "/var/www/html"
Expand Down
1 change: 1 addition & 0 deletions docker/php-fpm/xdebug.ini
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
zend_extension=/usr/lib/php/20170718/xdebug.so

0 comments on commit b69f95c

Please sign in to comment.