Add fpm tuning config
continuous-integration/drone/push Build is failing Details

Closes #16 (comment).
This commit is contained in:
decentral1se 2021-08-26 12:41:59 +02:00
parent 39d4f0e9b7
commit 5d1851e5b7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,4 @@
export FPM_TUNE_VERSION="v1"
export NGINX_CONF_VERSION="v2"
NC_APP_DIR="app:/var/www/html"

View File

@ -37,6 +37,9 @@ services:
image: nextcloud:22.1.0-fpm
depends_on:
- db
configs:
- source: fpm_tune
target: /usr/local/etc/php/conf.d/fpm-tune.ini
secrets:
- db_password
- admin_password
@ -137,6 +140,9 @@ configs:
name: ${STACK_NAME}_nginx_${NGINX_CONF_VERSION}
file: nginx.conf.tmpl
template_driver: golang
fpm_tune:
name: ${STACK_NAME}_fpm_tune_${FPM_TUNE_VERSION}
file: fpm-tune.ini
networks:
proxy:

5
fpm-tune.ini Normal file
View File

@ -0,0 +1,5 @@
pm = dynamic
pm.max_children = 120
pm.start_servers = 12
pm.min_spare_servers = 6
pm.max_spare_servers = 18