summaryrefslogtreecommitdiffstats
path: root/build-context
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-24 04:49:47 +0200
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-24 04:49:47 +0200
commitfc7ddd077cd9472b386bf0088cbff0919b4bc96f (patch)
tree54670434df437a8e4ddf4a3015b34032d4c9ceaf /build-context
downloadzabbix-container-fc7ddd077cd9472b386bf0088cbff0919b4bc96f.tar.gz
zabbix-container-fc7ddd077cd9472b386bf0088cbff0919b4bc96f.tar.bz2
zabbix-container-fc7ddd077cd9472b386bf0088cbff0919b4bc96f.tar.lz
zabbix-container-fc7ddd077cd9472b386bf0088cbff0919b4bc96f.zip

feat: initial commit

Diffstat (limited to 'build-context')
-rw-r--r--build-context/.gitkeep0
-rw-r--r--build-context/Caddyfile7
-rw-r--r--build-context/php-fpm.d/docker.conf6
-rw-r--r--build-context/php-fpm.d/zabbix.conf20
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