Skip to content

Commit

Permalink
added xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
msalakhov committed Apr 1, 2022
1 parent de1b859 commit 7bc737a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions containers/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ RUN echo 'deb [trusted=yes] https://repo.symfony.com/apt/ /' | tee /etc/apt/sour
symfony-cli \
&& docker-php-ext-install intl opcache pdo pdo_mysql \
&& pecl install apcu \
&& pecl install xdebug \
&& docker-php-ext-enable apcu \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
Expand Down
1 change: 1 addition & 0 deletions containers/php/conf/error_reporting.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
error_reporting=E_ALL
7 changes: 7 additions & 0 deletions containers/php/conf/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
zend_extension=xdebug

[xdebug]
xdebug.mode=develop,debug
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
xdebug.file_link_format="vscode://file/%f:%l&/var/www/lux/>/home/marik/docker_images/insurance/app/"
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ services:
ports:
- '9000:9000'
volumes:
- ./containers/php/conf:/usr/local/etc/php
- ./containers/php/conf/php.ini:/usr/local/etc/php/php.ini
- ./containers/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./containers/php/conf/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./app:/var/www/lux:rw
depends_on:
- database
Expand Down

0 comments on commit 7bc737a

Please sign in to comment.