-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
28 lines (21 loc) · 911 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM jarischaefer/baseimage-librenms:4.2
EXPOSE 80 443
ENV TZ=UTC \
RRDCACHED_LISTEN=unix:/var/run/rrdcached/rrdcached.sock \
RRDCACHED_CONNECT=unix:/var/run/rrdcached/rrdcached.sock \
SNMP_SCAN_CRON="0 0 * * *" \
WEATHERMAP_CRON="*/5 * * * *" \
POLLERS=8 \
POLLERS_CRON="*/5 * * * *" \
INSTALL=false \
PHP_FPM_WORKERS_MIN=1 \
PHP_FPM_WORKERS_MAX=4
ADD pre_install /
RUN chmod +x /build/install && /build/install && rm -r /build
ADD post_install /
RUN chmod -R +x /etc/my_init.d /etc/service /usr/local/bin && \
find /opt/librenms \( ! -user librenms -o ! -group librenms \) | xargs -L25 -r chown -h librenms:librenms && \
chmod 644 /etc/cron.d/* /etc/librenms/cron/*
VOLUME ["/opt/librenms/logs", "/opt/librenms/rrd", "/opt/librenms/storage"]
VOLUME ["/opt/librenms/html/plugins/Weathermap/configs", "/opt/librenms/html/plugins/Weathermap/output"]
VOLUME ["/etc/nginx/ssl", "/var/log/nginx"]