- node v16+
Environment variables are used for configuration They are set automatically as default through the Dockerfile and are assumed if none are provided
LOGGING
- Enables verbose logging, this is a boolean
- The default value is false
APIENABLED
- Enables the API, this is a boolean
- The default value is false
PORT
- The port for the webpage
- The default value is 8080
APIPORT
- The port for the API
- The default value is 8081
node index.js
docker run -d waveringana/server-monitoring \
-p 8080:8080 \
-e LOGGING=false \
=e APIENABLED=false \
-e PORT=8080 \
-e APIPORT=8081 \
waveringana/server-monitoring
version: "3.0"
services:
server-monitoring
image: waveringana/server-monitoring
container_name server-monitoring
environment:
- LOGGING=false
- APIENABLED=false
- PORT=8080
- APIPORT=8081
ports:
- 8080:8080
restart: unless-stopped
security_opt:
- no-new-privileges:true
Default port is 9001, posts a JSON string, example
{"platform":"linux","freemem":1154822144,"totalmem":3862515712,"uptime":607068,"cpuUsage":0}
- Networking Polling
- GPU Polling
- Maybe a rewrite to go-lang for better hardware polling