HUB
Sign inSign up
upsstats logo

crashvb/upsstats

By crashvb

•Updated over 3 years ago

Contains upsstats / nut-cgi.

Image
0

1.7K

crashvb/upsstats repository overview

⁠upsstats

version) image size linting license

⁠Overview

This docker image contains NUT⁠.

⁠Example Configuration

This is an example dynamic configuration connecting to upsd as a slave.

---
version: "3.9"

services:
  upsd:
    ...
    environment:
      UPSSTATS_HOSTS: |
        MONITOR ups0@myupsdhost "UPS0"
        MONITOR ups1@myupsdhost "UPS1"
    ...

⁠Entrypoint Scripts

⁠upsstats

The embedded entrypoint script is located at /etc/entrypoint.d/upsstats and performs the following actions:

  1. A new upsstats configuration is generated using the following environment variables:
VariableDefault ValueDescription
UPSSTATS_HOSTSThe contents to be appended to <nut_confpath>/hosts.conf.
UPSSTATS_USERSadminThe list of users to be allowed access. This is not the same as the userd.users credentials used to access upsset.cgi.
  1. Volume permissions are normalized.

⁠Standard Configuration

⁠Container Layout
/
├─ etc/
│  └─ entrypoint.d/
│     ├─ nginx
│     └─ upsstats
├─ run/
│  └─ secrets/
│     └─ <user>_password
└─ usr/
   └─ share/
      └─ nut/
         └─ www/
⁠Exposed Ports

None.

⁠Volumes
  • /etc/nut - The upsstats configuration directory.

⁠Development

Source Control⁠

Tag summary

Content type

Image

Digest

sha256:e8ad3290d…

Size

102.9 MB

Last updated

over 3 years ago

docker pull crashvb/upsstats