Review zabbix user and group configuration

This commit is contained in:
Alexey Pustovalov
2020-12-19 12:18:00 -05:00
34 changed files with 240 additions and 155 deletions

View File

@ -10,10 +10,13 @@ LABEL org.opencontainers.image.title="Zabbix web-interface (Nginx, 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 && \