services:
    nut-upsd:
      image: instantlinux/nut-upsd:latest
      container_name: nut-upsd
      environment:
        - DRIVER=usbhid-ups
        - NAME=ups
        - API_PASSWORD=8w76C$rCf2kZ83yZW3Cri7
      devices:
        - /dev/bus/usb:/dev/bus/usb
        - /dev/bus/usb/001/007:/dev/bus/usb/001/007
      ports:
        - "3493:3493"
     restart: always
      networks:
        - default
  
  networks:
    default:
      ipam:
        driver: default
        config:
          - subnet: 172.10.0.0/16
            gateway: 172.10.0.1
