Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,7 @@ COPY rootfs /
EXPOSE 8000 514 514/udp 162 162/udp
VOLUME [ "/data" ]

HEALTHCHECK --start-period=1m \
CMD lnms health:check || exit 1

ENTRYPOINT [ "/init" ]
4 changes: 4 additions & 0 deletions examples/compose/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ services:

syslogng:
image: librenms/librenms:latest
healthcheck:
disable: true
container_name: librenms_syslogng
hostname: librenms-syslogng
cap_add:
Expand Down Expand Up @@ -126,6 +128,8 @@ services:

snmptrapd:
image: librenms/librenms:latest
healthcheck:
disable: true
container_name: librenms_snmptrapd
hostname: librenms-snmptrapd
cap_add:
Expand Down
4 changes: 4 additions & 0 deletions examples/traefik/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ services:

syslogng:
image: librenms/librenms:latest
healthcheck:
disable: true
container_name: librenms_syslog
hostname: librenms-syslogng
depends_on:
Expand Down Expand Up @@ -170,6 +172,8 @@ services:

snmptrapd:
image: librenms/librenms:latest
healthcheck:
disable: true
container_name: librenms_snmptrapd
hostname: librenms-snmptrapd
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions test/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ services:

syslogng:
image: ${LIBRENMS_IMAGE:-librenms/librenms:latest}
healthcheck:
disable: true
container_name: librenms_syslogng
hostname: librenms-syslogng
cap_add:
Expand Down Expand Up @@ -118,6 +120,8 @@ services:

snmptrapd:
image: ${LIBRENMS_IMAGE:-librenms/librenms:latest}
healthcheck:
disable: true
container_name: librenms_snmptrapd
hostname: librenms-snmptrapd
cap_add:
Expand Down