Skip to content

Commit b7bae7f

Browse files
committed
Fixed dockerfile, add docs
1 parent 7e4c88a commit b7bae7f

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ Run `docker-compose up -d` instead.
150150
151151
* Permission problem? See [this doc (Setting up Permission)](http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup)
152152
153+
* How to config Xdebug?
154+
Xdebug is configured out of the box!
155+
Just config your IDE to connect port `9001` and id key `PHPSTORM`
156+
153157
## Contributing
154158
155159
First of all, **thank you** for contributing ♥

php7-fpm/Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ RUN "date"
2020
RUN docker-php-ext-install pdo pdo_mysql
2121

2222

23-
# Install and config xdebug ( From:https://hub.docker.com/r/inblank/php7-xdebug/~/dockerfile/ )
24-
RUN pecl install xdebug \
25-
&& docker-php-ext-enable xdebug \
26-
&& echo "error_reporting = E_ALL" > /usr/local/etc/php/php.ini \
27-
&& echo "display_startup_errors = On" >> /usr/local/etc/php/php.ini \
28-
&& echo "display_errors = On" >> /usr/local/etc/php/php.ini \
29-
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
30-
&& echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
31-
&& echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
32-
&& echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
23+
# install xdebug
24+
RUN pecl install xdebug
25+
RUN docker-php-ext-enable xdebug
26+
RUN echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
27+
RUN echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
28+
RUN echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
29+
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
30+
RUN echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
31+
RUN echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
32+
RUN echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
33+
3334

3435
RUN echo 'alias sf="php app/console"' >> ~/.bashrc
3536
RUN echo 'alias sf3="php bin/console"' >> ~/.bashrc

0 commit comments

Comments
 (0)