diff --git a/docker-compose.yml b/docker-compose.yml index 90cd989e..864a3cc4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: MYSQL_DATABASE: ${MYSQL_DATABASE} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} + ports: + - 3306:3306 php: build: context: php7-fpm @@ -17,7 +19,10 @@ services: TIMEZONE: ${TIMEZONE} volumes: - ${SYMFONY_APP_PATH}:/var/www/symfony - - ./logs/symfony:/var/www/symfony/app/logs + - ./logs/symfony:/var/www/symfony/var/logs + - ${SYMFONY_APP_PATH}:/var/www/symfony/var/logs + ports: + - 9000:9000 nginx: build: nginx ports: diff --git a/elk/logstash/logstash.conf b/elk/logstash/logstash.conf index f9e14bd5..314d5f56 100644 --- a/elk/logstash/logstash.conf +++ b/elk/logstash/logstash.conf @@ -6,12 +6,12 @@ input { } file { type => "symfony_dev" - path => "/var/www/symfony/app/logs/dev.log" + path => "/var/www/symfony/var/logs/dev.log" start_position => beginning } file { type => "symfony_prod" - path => "/var/www/symfony/app/logs/prod.log" + path => "/var/www/symfony/var/logs/prod.log" start_position => beginning } } diff --git a/php7-fpm/Dockerfile b/php7-fpm/Dockerfile index 6737810b..17ceb55b 100644 --- a/php7-fpm/Dockerfile +++ b/php7-fpm/Dockerfile @@ -7,7 +7,12 @@ MAINTAINER Maxence POUTORD RUN apt-get update && apt-get install -y \ openssl \ git \ - unzip + unzip \ + libpng-dev \ + g++ \ + libicu-dev \ + libxslt-dev + # Install Composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer @@ -19,7 +24,7 @@ RUN printf '[PHP]\ndate.timezone = "%s"\n', ${TIMEZONE} > /usr/local/etc/php/con RUN "date" # Type docker-php-ext-install to see available extensions -RUN docker-php-ext-install pdo pdo_mysql +RUN docker-php-ext-install pdo pdo_mysql gd exif opcache && docker-php-ext-enable opcache # install xdebug @@ -32,9 +37,12 @@ RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xd RUN echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini RUN echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini RUN echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini +RUN docker-php-ext-configure intl +RUN docker-php-ext-install intl +RUN docker-php-ext-configure xsl +RUN docker-php-ext-install xsl -RUN echo 'alias sf="php app/console"' >> ~/.bashrc -RUN echo 'alias sf3="php bin/console"' >> ~/.bashrc +RUN echo 'alias sf="php bin/console"' >> ~/.bashrc WORKDIR /var/www/symfony