From d116121d46022e0fd2619553335c96a74941f6c6 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 28 Feb 2024 00:35:10 -0800 Subject: [PATCH] Init networkupstools --- homelab/fighter/config/networkupstools/.env | 1 + .../config/networkupstools/docker-compose.yml | 20 +++++++++++++++++++ .../fighter/config/networkupstools/nut.env | 6 ++++++ 3 files changed, 27 insertions(+) create mode 100644 homelab/fighter/config/networkupstools/.env create mode 100644 homelab/fighter/config/networkupstools/docker-compose.yml create mode 100644 homelab/fighter/config/networkupstools/nut.env diff --git a/homelab/fighter/config/networkupstools/.env b/homelab/fighter/config/networkupstools/.env new file mode 100644 index 00000000..1a00dee1 --- /dev/null +++ b/homelab/fighter/config/networkupstools/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/admin/data/networkupstools \ No newline at end of file diff --git a/homelab/fighter/config/networkupstools/docker-compose.yml b/homelab/fighter/config/networkupstools/docker-compose.yml new file mode 100644 index 00000000..1355f93a --- /dev/null +++ b/homelab/fighter/config/networkupstools/docker-compose.yml @@ -0,0 +1,20 @@ +version: "3" +services: + nut: + image: shawly/nut + container_name: networkupstools_nut + env_file: + - path: ./nut.env + required: true + ports: + - "9000:9000" + 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 \ No newline at end of file diff --git a/homelab/fighter/config/networkupstools/nut.env b/homelab/fighter/config/networkupstools/nut.env new file mode 100644 index 00000000..b20ef14d --- /dev/null +++ b/homelab/fighter/config/networkupstools/nut.env @@ -0,0 +1,6 @@ +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