Skip to content

Instantly share code, notes, and snippets.

@jmsfwk
Created May 13, 2025 08:59
Show Gist options
  • Select an option

  • Save jmsfwk/29518109dbf3d0bd48e030f7f1ced2ac to your computer and use it in GitHub Desktop.

Select an option

Save jmsfwk/29518109dbf3d0bd48e030f7f1ced2ac to your computer and use it in GitHub Desktop.
xDebug
FROM php:8.4-fpm
RUN pecl install xdebug && docker-php-ext-enable xdebug
services:
php:
environment:
PHP_IDE_CONFIG: "serverName=docker"
services:
php:
build:
context: .docker/php
environment:
XDEBUG_MODE: debug
XDEBUG_CONFIG: "client_host=host.docker.internal"
volumes:
- .:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment