From 9b63fc3fbcd149c674e6d56675f8626caca6a1ae Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Sun, 12 Jan 2025 14:03:31 +0000 Subject: [PATCH] php-fpm.conf, renamed server to nginx --- config/php/php-cli.ini | 18 ------------------ config/php/php-fpm.conf | 1 + docker-compose.yml | 3 ++- 3 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 config/php/php-cli.ini create mode 100644 config/php/php-fpm.conf diff --git a/config/php/php-cli.ini b/config/php/php-cli.ini deleted file mode 100644 index c66bcfb..0000000 --- a/config/php/php-cli.ini +++ /dev/null @@ -1,18 +0,0 @@ -session.auto_start = Off -short_open_tag = Off - -error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED - -; opcache.enable_cli=1 -; opcache.fast_shutdown=1 -; opcache.memory_consumption=256 -; opcache.interned_strings_buffer=8 -; opcache.max_accelerated_files=4000 -; opcache.revalidate_freq=60 -; # http://symfony.com/doc/current/performance.html -; realpath_cache_size = 4096K -; realpath_cache_ttl = 600 - -memory_limit = 2G -post_max_size = 60M -upload_max_filesize = 50M \ No newline at end of file diff --git a/config/php/php-fpm.conf b/config/php/php-fpm.conf new file mode 100644 index 0000000..63bbada --- /dev/null +++ b/config/php/php-fpm.conf @@ -0,0 +1 @@ +pm.max_children = 10 diff --git a/docker-compose.yml b/docker-compose.yml index 83223a5..9dc3a49 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ services: - server: + nginx: image: nginx restart: always env_file: env @@ -31,6 +31,7 @@ services: - ./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/conf.d/invoiceninja.ini + - ./config/php/php-fpm.conf:/usr/local/etc/php-fpm.d/invoiceninja.conf depends_on: - db