Add optimized PHP settings.

This commit is contained in:
Jan Eitzinger 2021-09-13 13:21:00 +02:00
parent f1bc23d11f
commit c9c6c4353c
2 changed files with 1949 additions and 5 deletions

View File

@ -14,7 +14,7 @@ RUN docker-php-ext-install ldap \
opcache opcache
# Enable php8-xdebug if $PHP_XDEBUG_INIT is true # Enable php8-xdebug if $PHP_XDEBUG_INIT is true
ARG PHP_XDEBUG_INIT=false ARG PHP_XDEBUG_INIT="false"
ARG PHP_XDEBUG_MODE=off ARG PHP_XDEBUG_MODE=off
ARG PHP_XDEBUG_CLIENT_PORT=5902 ARG PHP_XDEBUG_CLIENT_PORT=5902
ARG PHP_XDEBUG_CLIENT_HOST=host.docker.internal ARG PHP_XDEBUG_CLIENT_HOST=host.docker.internal
@ -50,9 +50,9 @@ RUN mkdir -p /var/lib/job-archive
RUN mkdir -p /var/www/symfony RUN mkdir -p /var/www/symfony
VOLUME /var/www/symfony /var/lib/job-archive VOLUME /var/www/symfony /var/lib/job-archive
COPY symfony.ini /etc/php8/conf.d/ COPY php.ini /usr/local/etc/php/
COPY symfony.ini /etc/php8/cli/conf.d/ COPY symfony.ini /usr/local/etc/php/conf.d/
COPY symfony.ini /usr/local/etc/php/cli/conf.d/
COPY symfony.pool.conf /etc/php8/php-fpm.d/ COPY symfony.pool.conf /etc/php8/php-fpm.d/
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

1944
php-fpm/php.ini Normal file

File diff suppressed because it is too large Load Diff