summaryrefslogtreecommitdiff
path: root/.docker/php
diff options
context:
space:
mode:
Diffstat (limited to '.docker/php')
-rw-r--r--.docker/php/conf.d/local.ini15
-rw-r--r--.docker/php/php-fpm.conf17
2 files changed, 32 insertions, 0 deletions
diff --git a/.docker/php/conf.d/local.ini b/.docker/php/conf.d/local.ini
new file mode 100644
index 00000000..12d22cc6
--- /dev/null
+++ b/.docker/php/conf.d/local.ini
@@ -0,0 +1,15 @@
+expose_php = Off
+error_reporting = E_ALL
+display_errors = Off
+log_errors = On
+error_log = syslog
+date.timezone = UTC
+allow_url_fopen = On
+post_max_size = 30M
+upload_max_filesize = 30M
+opcache.max_accelerated_files = 7963
+opcache.validate_timestamps = Off
+opcache.save_comments = 0
+opcache.load_comments = 0
+opcache.fast_shutdown = 1
+opcache.enable_file_override = On \ No newline at end of file
diff --git a/.docker/php/php-fpm.conf b/.docker/php/php-fpm.conf
new file mode 100644
index 00000000..9e7ccd9c
--- /dev/null
+++ b/.docker/php/php-fpm.conf
@@ -0,0 +1,17 @@
+[global]
+error_log = /dev/stderr
+log_level = error
+daemonize = no
+
+[www]
+user = nginx
+group = nginx
+listen.owner = nginx
+listen.group = nginx
+listen = /var/run/php-fpm.sock
+pm = dynamic
+pm.max_children = 20
+pm.start_servers = 1
+pm.min_spare_servers = 1
+pm.max_spare_servers = 3
+pm.max_requests = 2048