diff options
feat: initial commit
Diffstat (limited to 'build-context')
-rw-r--r-- | build-context/.gitkeep | 0 | ||||
-rw-r--r-- | build-context/Caddyfile | 7 | ||||
-rw-r--r-- | build-context/php-fpm.d/docker.conf | 6 | ||||
-rw-r--r-- | build-context/php-fpm.d/zabbix.conf | 20 |
4 files changed, 33 insertions, 0 deletions
diff --git a/build-context/.gitkeep b/build-context/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build-context/.gitkeep diff --git a/build-context/Caddyfile b/build-context/Caddyfile new file mode 100644 index 0000000..6979a0a --- /dev/null +++ b/build-context/Caddyfile @@ -0,0 +1,7 @@ +http:// { + encode gzip zstd + + root * /usr/share/webapps/zabbix + php_fastcgi 127.0.0.1:9000 + file_server +} diff --git a/build-context/php-fpm.d/docker.conf b/build-context/php-fpm.d/docker.conf new file mode 100644 index 0000000..864c61c --- /dev/null +++ b/build-context/php-fpm.d/docker.conf @@ -0,0 +1,6 @@ +[global] +error_log = /proc/self/fd/2 +daemonize = no + +; https://github.com/docker-library/php/pull/725#issuecomment-443540114 +log_limit = 8192 diff --git a/build-context/php-fpm.d/zabbix.conf b/build-context/php-fpm.d/zabbix.conf new file mode 100644 index 0000000..c658bf6 --- /dev/null +++ b/build-context/php-fpm.d/zabbix.conf @@ -0,0 +1,20 @@ +[zabbix] +pm = dynamic +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +pm.max_requests = 1000 + +user = phpfpm + +listen = 9000 +chdir = /usr/share/webapps/zabbix + +; if we send this to /proc/self/fd/1, it never appears +access.log = /proc/self/fd/3 +clear_env = no + +; Ensure worker stdout and stderr are sent to the main error log. +catch_workers_output = yes +decorate_workers_output = no |