Add initial xdebug support

Enable using `XDEBUG_MODE=debug docker compose up`.
This commit is contained in:
Oliver Davies 2024-05-01 23:21:43 +01:00
parent d6f8b29065
commit 4138112e4c
3 changed files with 8 additions and 9 deletions

View file

@ -1,8 +1,6 @@
services:
php-fpm:
php:
environment:
XDEBUG_MODE: ${XDEBUG_MODE:-off}
extra_hosts:
- "host.docker.internal:host-gateway"
web:
ports:
- "80:80"
host.docker.internal: host-gateway