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,10 +10,13 @@ LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, PostgreSQL)"
STOPSIGNAL SIGTERM
RUN set -eux && \
groupadd -g 1995 --system zabbix && \
adduser -r --shell /sbin/nologin \
groupadd --system --gid 1995 zabbix && \
useradd \
--system --comment "Zabbix monitoring system" \
-g zabbix -G root \
-d /var/lib/zabbix/ -u 1997 \
--uid 1997 \
--shell /sbin/nologin \
--home-dir /var/lib/zabbix/ \
zabbix && \
mkdir -p /etc/zabbix && \
mkdir -p /etc/zabbix/web && \