File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1313 command : php-fpm
1414 links :
1515 - db
16- ports :
17- - " 9000:9000"
1816 environment :
1917 APP_ENV : local
2018 APP_DEBUG : ' true'
2119 APP_KEY : SomeRandomKey!!!
22- APP_LOCALE : en
23- APP_FALLBACK_LOCALE : en
20+ APP_LOCALE : it
21+ APP_FALLBACK_LOCALE : it
2422 DB_CONNECTION : mysql
2523 DB_HOST : db
2624 DB_DATABASE : lumen
2725 DB_USERNAME : lumen
2826 DB_PASSWORD : secret
29- MEMCACHED_HOST : cache
30- CACHE_DRIVER : memcached
27+ XDEBUG_CONFIG : remote_host=host.docker.internal
28+ PHP_IDE_CONFIG : serverName=localhost
3129db :
3230 image : mysql
3331 ports :
Original file line number Diff line number Diff line change 11FROM php:7.3-fpm-alpine
2+
23# lumen/laravel packages
3- RUN docker-php-ext-install mbstring tokenizer mysqli pdo_mysql
4+ RUN docker-php-ext-install mbstring tokenizer mysqli pdo_mysql
5+
6+ # install xdebug
7+ RUN apk add --no-cache $PHPIZE_DEPS \
8+ && pecl install xdebug \
9+ && docker-php-ext-enable xdebug \
10+ && echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
11+ && echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
12+ && echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
13+ && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
14+ && echo "xdebug.remote_connect_back=0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
15+ && echo "xdebug.idekey=\" PHPSTORM\" " >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
16+ && echo "xdebug.remote_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
You can’t perform that action at this time.
0 commit comments