From 48b44a9e4fc3e672e4d724895e160414590057e7 Mon Sep 17 00:00:00 2001 From: Adam Lavin Date: Sun, 28 Mar 2021 17:51:36 +0100 Subject: [PATCH] Update php overrides in container --- docker-compose.yml | 4 ++-- docker/php/php.ini | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b289a1fe..e8cd2f00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,8 @@ services: - web volumes: - .:/app - - ./vagrant/php-overrides.ini:/usr/local/etc/php/conf.d/php.ini:ro - - ./vagrant/php-overrides.ini:/usr/local/etc/php-fpm.d/php.ini:ro + - ./docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini:ro + - ./docker/php/php.ini:/usr/local/etc/php-fpm.d/php.ini:ro elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0 diff --git a/docker/php/php.ini b/docker/php/php.ini index 552edf93..4cc7290b 100644 --- a/docker/php/php.ini +++ b/docker/php/php.ini @@ -1,3 +1,15 @@ [php] post_max_size = 600M upload_max_filesize = 600M + +[opcache] +opcache.enable=1 +; 0 means it will check on every request +; 0 is irrelevant if opcache.validate_timestamps=0 which is desirable in production +opcache.revalidate_freq=0 +opcache.validate_timestamps=1 +opcache.max_accelerated_files=10000 +opcache.memory_consumption=192 +opcache.max_wasted_percentage=10 +opcache.interned_strings_buffer=16 +opcache.fast_shutdown=1