Permalink
Browse files

Configure XDebug based on env file

  • Loading branch information...
jessedobbelaere committed Aug 6, 2017
1 parent 60e23af commit d1437de0e6bcfc845981b0f29a01a66c16a7f0bb
Showing with 6 additions and 16 deletions.
  1. +3 −3 Dockerfile
  2. +3 −4 docker-compose.yml
  3. +0 −9 var/docker/php/xdebug.ini
@@ -33,9 +33,9 @@ RUN apt-get update && apt-get install -y \
COPY var/docker/php/php.ini ${PHP_INI_DIR}/php.ini

# Install and configure XDebug
RUN pecl install xdebug && docker-php-ext-enable xdebug
COPY var/docker/php/xdebug.ini ${PHP_INI_DIR}/conf.d/xdebug.init
RUN echo 'xdebug.remote_host="${DOCKER_HOST_IP}"' >> ${PHP_INI_DIR}/conf.d/xdebug.ini
RUN pecl install xdebug && \
docker-php-ext-enable xdebug && \
rm -rf /tmp/pear

# Install composer
RUN curl -sS https://getcomposer.org/installer | \
@@ -2,8 +2,7 @@ version: "3"

services:
app:
build:
context: .
build: .
working_dir: /var/www/html
ports:
- "80:80"
@@ -13,8 +12,8 @@ services:
environment:
- FORK_DEBUG=1
- FORK_ENV=dev
- DOCKER_HOST_IP
- XDEBUG_CONFIG="remote_host=${DOCKER_HOST_IP} idekey=PHPSTORM remote_log=/dev/stdout" # PHP CLI debug
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
- XDEBUG_CONFIG=remote_connect_back=0 remote_enable=1 idekey=${XDEBUG_IDEKEY} remote_port=${XDEBUG_PORT} remote_host=${DOCKER_HOST_IP}
volumes:
- .:/var/www/html:cached
- ./src/Frontend/Files:/var/www/html/src/Frontend/Files:cached

This file was deleted.

Oops, something went wrong.

0 comments on commit d1437de

Please sign in to comment.