Skip to content

Instantly share code, notes, and snippets.

@jamescrowley
Last active August 8, 2019 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamescrowley/511bcdfebd572a6ee458ab17d28b1bc4 to your computer and use it in GitHub Desktop.
Save jamescrowley/511bcdfebd572a6ee458ab17d28b1bc4 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
web:
build: .docker/php
volumes:
- .:/var/www/html/
- ./.docker/data/xdebug:/tmp/xdebug
ports:
- "8100:80"
environment:
XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9000 remote_enable=1 idekey=IDEA_DEBUG profiler_enable=1 profiler_aggregate=1 profiler_output_dir=/tmp/xdebug
stdin_open: true
tty: true
webgrind:
image: devgeniem/webgrind
ports:
- "8101:80"
volumes:
- .:/var/www/html/
- ./.docker/data/xdebug:/tmp/xdebug
environment:
XDEBUG_OUTPUT_DIR: "/tmp/xdebug"
# original path: .docker/php/Dockerfile
FROM php:7.2.2-apache
# enable mod_rewrite
RUN a2enmod rewrite
# PHP extensions
RUN docker-php-ext-install pdo_mysql exif
# Enable xdebug for debugging & profiling
RUN pecl install xdebug && docker-php-ext-enable xdebug
<?php
echo "hello";
web_1 | [Thu Aug 08 12:52:37.136120 2019] [core:notice] [pid 1] AH00052: child pid 32 exit signal Segmentation fault (11)
; needed as environment variable is ignored
; see https://bugs.xdebug.org/view.php?id=1693
xdebug.profiler_aggregate=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment