[PHP-FPM] Mount php configs into container
This commit is contained in:
parent
83a21259f7
commit
a50f85026a
7
data/conf/phpfpm/php-conf.d/opcache-recommended.ini
Normal file
7
data/conf/phpfpm/php-conf.d/opcache-recommended.ini
Normal file
@ -0,0 +1,7 @@
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=10000
|
||||
opcache.memory_consumption=128
|
||||
opcache.save_comments=1
|
||||
opcache.revalidate_freq=1
|
12
data/conf/phpfpm/php-fpm.d/system.conf
Normal file
12
data/conf/phpfpm/php-fpm.d/system.conf
Normal file
@ -0,0 +1,12 @@
|
||||
[system]
|
||||
user = www-data
|
||||
group = www-data
|
||||
pm = dynamic
|
||||
pm.max_children = 10
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 2
|
||||
pm.max_spare_servers = 4
|
||||
listen = [::]:9001
|
||||
access.log = /proc/self/fd/2
|
||||
clear_env = no
|
||||
catch_workers_output = yes
|
12
data/conf/phpfpm/php-fpm.d/www.conf
Normal file
12
data/conf/phpfpm/php-fpm.d/www.conf
Normal file
@ -0,0 +1,12 @@
|
||||
[www]
|
||||
user = www-data
|
||||
group = www-data
|
||||
listen = 127.0.0.1:9000
|
||||
pm = ondemand
|
||||
pm.max_children = 20
|
||||
pm.process_idle_timeout = 20s
|
||||
pm.max_requests = 800
|
||||
listen = [::]:9001
|
||||
access.log = /proc/self/fd/2
|
||||
clear_env = no
|
||||
catch_workers_output = yes
|
Loading…
Reference in New Issue
Block a user