Review zabbix user and group configuration

This commit is contained in:
Alexey Pustovalov
2020-12-19 18:42:48 +02:00
parent 44c6d1dc46
commit 4e13e98344
34 changed files with 240 additions and 155 deletions

View File

@ -10,13 +10,16 @@ LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, MySQL)" \
STOPSIGNAL SIGTERM
RUN set -eux && \
addgroup -S -g 1995 zabbix && \
adduser -S \
-D -G zabbix -G root \
-u 1997 \
-h /var/lib/zabbix/ \
-H \
addgroup --system --gid 1995 zabbix && \
adduser --system \
--gecos "Zabbix monitoring system" \
--disabled-password \
--uid 1997 \
--ingroup zabbix \
--shell /sbin/nologin \
--home /var/lib/zabbix/ \
zabbix && \
adduser zabbix root && \
mkdir -p /etc/zabbix && \
mkdir -p /etc/zabbix/web && \
apk add --clean-protected --no-cache \