diff --git a/fighter/config/networkupstools/.env b/fighter/config/networkupstools/.env deleted file mode 100644 index 1a00dee..0000000 --- a/fighter/config/networkupstools/.env +++ /dev/null @@ -1 +0,0 @@ -DOCKER_DATA=/home/admin/data/networkupstools \ No newline at end of file diff --git a/fighter/config/networkupstools/docker-compose.yml b/fighter/config/networkupstools/docker-compose.yml index 02c640e..600ae6f 100644 --- a/fighter/config/networkupstools/docker-compose.yml +++ b/fighter/config/networkupstools/docker-compose.yml @@ -1,24 +1,12 @@ version: "3" services: nut: - image: shawly/nut + image: upshift/nut-upsd container_name: networkupstools_nut env_file: - path: ./nut.env required: true - networks: - - web - volumes: - - "$DOCKER_DATA/titles:/nut/titles:rw" - - "$DOCKER_DATA/conf:/nut/conf:rw" - - "$DOCKER_DATA/_NSPOUT:/nut/_NSPOUT:rw" - - "$DOCKER_DATA/titledb:/nut/titledb:rw" - labels: - - traefik.http.routers.nut.rule=Host(`nut.jafner.net`) - - traefik.http.routers.nut.tls.certresolver=lets-encrypt - - traefik.http.routers.nut.middlewares=lan-only@file - - traefik.http.services.nut.loadbalancer.server.port=9000 - -networks: - web: - external: true \ No newline at end of file + ports: + - 3493:3493 + devices: + - "/dev/bus/usb/001/005" \ No newline at end of file diff --git a/fighter/config/networkupstools/nut.env b/fighter/config/networkupstools/nut.env index 7f39033..90cdca5 100644 --- a/fighter/config/networkupstools/nut.env +++ b/fighter/config/networkupstools/nut.env @@ -1,6 +1,7 @@ -TZ=America/Los_Angeles -USER_ID=1001 -GROUP_ID=1001 -TITLEDB_REGION=US -TITLEDB_LANGUAGE=en -#NUT_API_SCHEDULES='"[{"scan":"0/30 * * * *}]"' \ No newline at end of file +#SHUTDOWN_CMD=echo 'System shutdown not configured!' +UPS_NAME=EATON5PX1500RT +UPS_DESC=Eaton 5PX1500RT +UPS_DRIVER=snmp-ups +UPS_PORT=auto +#API_USER= +#API_PASSWORD= \ No newline at end of file