NodeSentinel documentation
Docker Compose
Install, update and secure the NodeSentinel dashboard and agents with ready-to-use multi-architecture images.
Prerequisites
Install Docker Engine and the Docker Compose plugin following your Linux distribution's documentation. Check both commands:
docker --version
docker compose versionThe published images are named thearchitect998/nodesentinel and thearchitect998/nodesentinel-agent. Use a version tag instead of latest for reproducible deployments.
Deploy the dashboard
Prepare the files
git clone https://github.com/TheArchitect998/NodeSentinel.git cd NodeSentinel cp nodesentinel.config.example.json nodesentinel.config.json chmod 600 nodesentinel.config.jsonEdit the configuration
Remove unused examples. Give every push agent a name and a unique random key.
{ "agents": { "HomeLab1": { "mode": "push", "key": "at-least-16-random-characters" } } }Set the password and start
docker compose pull docker compose run --rm dashboard /usr/local/bin/nodesentinel dashboard setup docker compose up -d docker compose ps
The password, settings and SQLite databases are stored in the dashboard-state volume. Back it up regularly. docker compose down -v deletes it and therefore the history.
Bind address and time zone
By default, the container listens on 127.0.0.1:8888. You can set NODESENTINEL_BIND_ADDRESS, NODESENTINEL_PORT and NODESENTINEL_TIMEZONE in the Compose environment. Recreate the container after making changes.
NODESENTINEL_PORT=8888
NODESENTINEL_TIMEZONE=Europe/Berlin
# Only together with a firewall / reverse proxy:
# NODESENTINEL_BIND_ADDRESS=192.168.1.50Agent with Compose
Use compose.agent.yaml together with a protected .env on every monitored host.
NODESENTINEL_AGENT_NAME=HomeLab1
NODESENTINEL_AGENT_KEY=at-least-16-random-characters
NODESENTINEL_HUB_URL=wss://monitor.example.comchmod 600 .env
docker compose -f compose.agent.yaml pull
docker compose -f compose.agent.yaml up -d
docker compose -f compose.agent.yaml psThe agent starts with minimal privileges. Docker socket, host filesystem, journal, UFW, Fail2Ban and SMART are disabled by default. Docker socket access is effectively root access to the host.
Dockhand or Portainer
- Create the dashboard configuration on the Docker host first and grant the container user UID/GID 10001 read access.
- Create a stack from the repository or the contents of
compose.yaml. - If necessary, set the absolute path with
NODESENTINEL_CONFIG_PATH. - After deployment, open the container console and run
/usr/local/bin/nodesentinel dashboard setup. - Keep the stack name unchanged during replacement or updates so
dashboard-stateis reused.
Additional host sources
| Source | Required | Note |
|---|---|---|
| Docker | NODESENTINEL_ENABLE_DOCKER=1 and socket mount | Root-equivalent permission |
| Host filesystem | NODESENTINEL_ENABLE_HOST_ROOT=1 and read-only mount | May expose sensitive files |
| SSH events | Journal mount and enable flag | May expose sensitive logs |
| UFW | Host network, NET_ADMIN and UFW mount | NET_ADMIN is a privileged capability |
| Fail2Ban | Socket mount and enable flag | Socket allows administrative commands |
| S.M.A.R.T. | Enable flag, SYS_RAWIO and device access | Does not wake disks in standby |