Nomploy Nomad Packs

← All packs

watchyourlan v0.1.0

Networking

WatchYourLAN — a lightweight network IP scanner that tracks devices on your LAN, shows online/offline history and sends notifications. Deployed as a single host-networked Nomad service.

nomad-pack run watchyourlan --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- watchyourlan

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task http 8840 1 volume image aceberg/watchyourlan:latest tracks :latest image bumped today
Variables 11
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run watchyourlan -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "watchyourlan"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The WatchYourLAN container image. Pin a tag in production.
image = "aceberg/watchyourlan:latest"

# Host port for the WatchYourLAN web UI.
port = 8840

# Named volume mounted at /data/WatchYourLAN (the SQLite database).
data_volume = "watchyourlan_data"

# Network interface(s) to scan, space-separated (IFACES). SET THIS to your host's real interface — run `ip -br link` to find it (e.g. "eth0" or "eth0 eth1").
ifaces = "eth0"

# Seconds between network scans (TIMEOUT).
timeout = 60

# Container timezone (TZ), e.g. Europe/Bratislava.
tz = "UTC"

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"watchyourlan"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"aceberg/watchyourlan:latest"
The WatchYourLAN container image. Pin a tag in production.
port number
8840
Host port for the WatchYourLAN web UI.
data_volume string
"watchyourlan_data"
Named volume mounted at /data/WatchYourLAN (the SQLite database).
ifaces string
"eth0"
Network interface(s) to scan, space-separated (IFACES). SET THIS to your host's real interface — run `ip -br link` to find it (e.g. "eth0" or "eth0 eth1").
timeout number
60
Seconds between network scans (TIMEOUT).
tz string
"UTC"
Container timezone (TZ), e.g. Europe/Bratislava.
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
The task resources.
Back up this pack

This pack stores data in one Docker named volume: watchyourlan_data

restic

# Run on the node hosting this pack. Point restic at your repo first:
#   export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>"
#   export RESTIC_PASSWORD="<repo-password>"
#   export AWS_ACCESS_KEY_ID=<key>  AWS_SECRET_ACCESS_KEY=<secret>
restic backup \
  /var/lib/docker/volumes/watchyourlan_data/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/watchyourlan_data/_data backup:<bucket>/watchyourlan_data

Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.

Readme

watchyourlan

WatchYourLAN — a lightweight network device monitor. It periodically ARP-scans your LAN, records every host it sees, shows an online/offline history and a live dashboard, and can send notifications (via Shoutrrr) when a device appears or goes away. Handy for spotting unknown devices on your network.

Single host-networked Nomad service with a persistent SQLite database.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run watchyourlan --registry=nomploy

Configure

Variable Default Description
port 8840 Web UI port (PORT).
ifaces eth0 Set this. Interface(s) to scan (IFACES), space-separated — run ip -br link on the host.
timeout 60 Seconds between scans (TIMEOUT).
tz UTC Container timezone (TZ).
image aceberg/watchyourlan:latest Container image. Pin a tag in production.
data_volume watchyourlan_data /data/WatchYourLAN — the SQLite database.
resources { cpu = 300, memory = 256 } Task resources.

Needs the host network to see your LAN. This pack runs on the host network with NET_RAW/NET_ADMIN so it can ARP-scan. ifaces must name a real host interface, and the job only sees the LAN of the node it runs on — pin it with constraints to the node whose network you want to watch.