Using different way to redirect Nginx messages to stdout / stderr

This commit is contained in:
Alexey Pustovalov
2024-01-19 13:17:09 +09:00
parent 91fcbd9b26
commit 27f6cb45a5
45 changed files with 105 additions and 92 deletions

View File

@ -81,7 +81,8 @@ RUN set -eux && \
mkdir -p /var/lib/php/session && \
rm -rf /etc/php7/php-fpm.d/www.conf && \
rm -f /etc/nginx/http.d/*.conf && \
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log && \
cd /usr/share/zabbix/ && \
rm -f conf/zabbix.conf.php conf/maintenance.inc.php conf/zabbix.conf.php.example && \
rm -rf tests && \