diff --git a/config/php/php.ini b/config/php/php.ini index f5298a6..3039423 100644 --- a/config/php/php.ini +++ b/config/php/php.ini @@ -1,21 +1,23 @@ -session.auto_start = Off -short_open_tag = Off +[core] +; https://www.php.net/manual/en/ini.core.php +post_max_size=10M +upload_max_filesize=10M -error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED +[opcache] +; https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended +opcache.enable_cli=1 -; opcache.enable=1 -; opcache.preload=/var/www/app/preload.php -; opcache.preload_user=www-data +[jit] +; https://wiki.php.net/rfc/jit_config_defaults +opcache.jit=tracing +opcache.jit_buffer_size=64M -; ; The OPcache shared memory storage size. -; opcache.max_accelerated_files=300000 -; opcache.validate_timestamps=1 -; opcache.revalidate_freq=30 -; opcache.jit_buffer_size=256M -; opcache.jit=1205 -; opcache.memory_consumption=1024M - - -post_max_size = 60M -upload_max_filesize = 50M -memory_limit=512M +[extra] +; https://frankenphp.dev/docs/performance/#php-performance +; http://symfony.com/doc/current/performance.html +opcache.memory_consumption=256 +opcache.max_accelerated_files=20000 +opcache.preload=/var/www/app/preload.php +opcache.validate_timestamps=0 +realpath_cache_size = 4096K +realpath_cache_ttl = 600 diff --git a/docker-compose.yml b/docker-compose.yml index 4482edd..83223a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: volumes: # Vhost configuration #- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com - - ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro + - ./config/nginx:/etc/nginx/conf.d:ro - ./docker/app/public:/var/www/app/public:ro depends_on: - app @@ -30,11 +30,11 @@ services: - ./config/hosts:/etc/hosts:ro - ./docker/app/public:/var/www/app/public:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated - - ./config/php/php.ini:/usr/local/etc/php/php.ini - - ./config/php/php-cli.ini:/usr/local/etc/php/php-cli.ini + - ./config/php/php.ini:/usr/local/etc/php/conf.d/invoiceninja.ini depends_on: - db + - valkey networks: - invoiceninja extra_hosts: @@ -90,7 +90,6 @@ services: start_period: 10s networks: - invoiceninja - logging: *default-logging networks: invoiceninja: