File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11TZ=Europe/Moscow
22SHELL=/bin/zsh
3+ HOSTIP=127.0.0.1
34
45SYMFONY_ENV=dev
56MYSQL_ROOT_PASSWORD=root
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
8787
8888COPY etc/php-fpm.conf /usr/local/etc/
8989COPY etc/php.ini /usr/local/etc/php/
90+
91+ # Put host's IP to php.ini
92+ ARG HOSTIP=127.0.0.1
93+ ENV HOSTIP ${HOSTIP}
94+ RUN echo xdebug.remote_host=$HOSTIP>>/usr/local/etc/php/conf.d/xdebug.ini
95+
9096RUN chmod ugo+rX -R /usr/local/etc/php
9197
9298# SSH
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ upload_max_filesize = 64M
1010[xdebug]
1111xdebug.remote_enable =1
1212xdebug.cli_color =1
13- xdebug.remote_host =127.0.0.1
14- # xdebug.remote_host="docker.for.mac.localhost" #for mac
1513xdebug.collect_params =0
1614xdebug.collect_return =0
1715xdebug.collect_vars =0
1816xdebug.auto_trace =0
1917xdebug.profiler_enable =0
20- xdebug.idekey =PHPSTORM
18+ xdebug.idekey =PHPSTORM
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ services:
8181 php7xdebug :
8282 env_file : .env
8383 build :
84+ args :
85+ - TZ=${TZ}
86+ - HOSTIP=${HOSTIP}
8487 context : ./conf/php7xdebug
8588 image : maxlab/php7xdebug
8689 restart : always
You can’t perform that action at this time.
0 commit comments