-
-
Save jamescrowley/511bcdfebd572a6ee458ab17d28b1bc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "hello"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web_1 | [Thu Aug 08 12:52:37.136120 2019] [core:notice] [pid 1] AH00052: child pid 32 exit signal Segmentation fault (11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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