version: "3.6"
services:
app:
build: ./.docker
ports:
- "80:80"
- "9001:9001"
volumes:
- ./src:/var/www/html
FROM php:7.1-apache
RUN apt-get update &&\
apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git &&\
rm -rf /var/lib/apt/lists/*
RUN pecl install xdebug && docker-php-ext-enable xdebug
COPY php.ini /usr/local/etc/php/
[php]
date.timezone = UTC
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
[xdebug]
#zend_extension=xdebug.so
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9001
xdebug.remote_host=host.docker.internal
xdebug.idekey=PHPSTORM