diff --git a/templates/docker-compose.yml.twig b/templates/docker-compose.yml.twig
index c6e4925a7b59e98d883931f673609921c3b39645..c7ce77e62fc51c73ba51663e0d78d4c4ad25c7ca 100644
--- a/templates/docker-compose.yml.twig
+++ b/templates/docker-compose.yml.twig
@@ -13,7 +13,7 @@ services:
     image: wodby/drupal-php:{{ php.version }}-2.0.0
     environment:
       PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
-{% if php.debug %}
+{% if php.xdebug %}
       PHP_XDEBUG: 1
       PHP_XDEBUG_DEFAULT_ENABLE: 1
 {% endif %}