From 4ac0426a65d468653e9d24928d87421e1f3f4176 Mon Sep 17 00:00:00 2001 From: JamesTurland Date: Fri, 6 Feb 2026 15:59:24 +0000 Subject: [PATCH] nut-server --- NUT-Server/Nutify/docker-compose.yaml | 29 +++++++++++++++++++++++++++ NUT-Server/PeaNUT/docker-compose.yaml | 22 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 NUT-Server/Nutify/docker-compose.yaml create mode 100644 NUT-Server/PeaNUT/docker-compose.yaml diff --git a/NUT-Server/Nutify/docker-compose.yaml b/NUT-Server/Nutify/docker-compose.yaml new file mode 100644 index 0000000..aad7f9d --- /dev/null +++ b/NUT-Server/Nutify/docker-compose.yaml @@ -0,0 +1,29 @@ +services: + nut: + image: dartsteven/nutify:arm64-latest # Use amd64-latest or armv7-latest based on your architecture + container_name: Nutify + privileged: true + cap_add: + - SYS_ADMIN + - SYS_RAWIO + - MKNOD + devices: + - /dev/bus/usb:/dev/bus/usb:rwm + device_cgroup_rules: + - 'c 189:* rwm' + volumes: + - ./Nutify/logs:/app/nutify/logs + - ./Nutify/instance:/app/nutify/instance + - ./Nutify/ssl:/app/ssl + - ./Nutify/etc/nut:/etc/nut + - /dev:/dev:rw # Full /dev access improves hotplug handling + - /run/udev:/run/udev:ro # Access to udev events + environment: + - SECRET_KEY=mypassword # for password encryption and decryption in the database + - UDEV=1 # Improve USB detection + ports: + - 3493:3493 + - 5050:5050 + - 443:443 + restart: always + user: root \ No newline at end of file diff --git a/NUT-Server/PeaNUT/docker-compose.yaml b/NUT-Server/PeaNUT/docker-compose.yaml new file mode 100644 index 0000000..8295cf3 --- /dev/null +++ b/NUT-Server/PeaNUT/docker-compose.yaml @@ -0,0 +1,22 @@ +services: + nut-upsd: + image: instantlinux/nut-upsd + container_name: nut-upsd + devices: + - /dev/bus/usb + restart: unless-stopped + + peanut: + image: brandawg93/peanut:latest + container_name: PeaNUT + ports: + - 8080:8080 + restart: unless-stopped + volumes: + - ./config:/config + environment: + - WEB_PORT=8080 + +networks: + default: + name: nut_network \ No newline at end of file