From 0adc2e18def9ed39c6540d326c442ee7811eb203 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 9 Apr 2020 16:03:02 -0700 Subject: [PATCH] Added xdebug settings to php.ini --- .docker/php/config/php.ini | 6 ++++++ docker-compose.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.docker/php/config/php.ini b/.docker/php/config/php.ini index 9873ef0..6f72209 100644 --- a/.docker/php/config/php.ini +++ b/.docker/php/config/php.ini @@ -2,3 +2,9 @@ error_reporting = E_ALL log_errors = On memory_limit = -1 + +[xdebug] +xdebug.remote_enable = 1 +xdebug.remote_autostart = 1 +xdebug.remote_host = host.docker.internal +xdebug.remote_port = 9000 diff --git a/docker-compose.yaml b/docker-compose.yaml index 7c66f69..84a1c42 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,6 +9,8 @@ services: volumes: - ./:/var/www/html restart: unless-stopped + extra_hosts: + - host.docker.internal:${DOCKER_HOST_IP} networks: default: