Skip to content

Commit

Permalink
Added xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Krason committed Mar 27, 2018
1 parent d878f24 commit ade7927
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions docker-compose.yml
Expand Up @@ -18,6 +18,8 @@ services:
- ./logs/symfony:/var/www/symfony/var/logs:cached
links:
- db
extra_hosts:
- "docker.host:127.0.0.1"
nginx:
build: ./nginx
ports:
Expand Down
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile
Expand Up @@ -25,7 +25,7 @@ RUN apk add --update \
php7-phar \
php7-tokenizer \
php7-session \
php7-simplexml \
php7-xdebug \
make \
curl

Expand All @@ -35,10 +35,11 @@ RUN curl --insecure https://getcomposer.org/composer.phar -o /usr/bin/composer &

ADD symfony.ini /etc/php7/php-fpm.d/
ADD symfony.ini /etc/php7/cli/conf.d/
ADD xdebug.ini /etc/php7/conf.d/

ADD symfony.pool.conf /etc/php7/php-fpm.d/

CMD ["php-fpm7", "-F"]

WORKDIR /var/www/symfony
EXPOSE 9000
EXPOSE 9000
6 changes: 6 additions & 0 deletions php-fpm/xdebug.ini
@@ -0,0 +1,6 @@
zend_extension=xdebug.so

[Xdebug]
xdebug.remote_enable=true
xdebug.remote_port=5902
xdebug.remote_host=docker.host

0 comments on commit ade7927

Please sign in to comment.