Skip to content

Instantly share code, notes, and snippets.

@jamescrowley jamescrowley/Dockerfile Secret
Last active Aug 8, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.