Add fpm tuning config
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Closes #16 (comment).
This commit is contained in:
parent
39d4f0e9b7
commit
5d1851e5b7
1
abra.sh
1
abra.sh
|
@ -1,3 +1,4 @@
|
||||||
|
export FPM_TUNE_VERSION="v1"
|
||||||
export NGINX_CONF_VERSION="v2"
|
export NGINX_CONF_VERSION="v2"
|
||||||
|
|
||||||
NC_APP_DIR="app:/var/www/html"
|
NC_APP_DIR="app:/var/www/html"
|
||||||
|
|
|
@ -37,6 +37,9 @@ services:
|
||||||
image: nextcloud:22.1.0-fpm
|
image: nextcloud:22.1.0-fpm
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
configs:
|
||||||
|
- source: fpm_tune
|
||||||
|
target: /usr/local/etc/php/conf.d/fpm-tune.ini
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
- admin_password
|
- admin_password
|
||||||
|
@ -137,6 +140,9 @@ configs:
|
||||||
name: ${STACK_NAME}_nginx_${NGINX_CONF_VERSION}
|
name: ${STACK_NAME}_nginx_${NGINX_CONF_VERSION}
|
||||||
file: nginx.conf.tmpl
|
file: nginx.conf.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
|
fpm_tune:
|
||||||
|
name: ${STACK_NAME}_fpm_tune_${FPM_TUNE_VERSION}
|
||||||
|
file: fpm-tune.ini
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
pm = dynamic
|
||||||
|
pm.max_children = 120
|
||||||
|
pm.start_servers = 12
|
||||||
|
pm.min_spare_servers = 6
|
||||||
|
pm.max_spare_servers = 18
|
Loading…
Reference in New Issue