Files
ServerMonitor/docker-compose.yml
Sanders 465b27d673 ServerMonitor: Dockerized health-check service with Telegram alerts
- Pure stdlib Python (3.12), runs on python:3.12-alpine as non-root
- Checks: ping, HTTP (expected codes), TCP ports, Netdata alarms + metrics
- Netdata v2 compatible: system.cpu (no idle dim), system.ram, disk_space.* discovery
- AlertEngine dedup: first alert, reminders, recovery (only after real alert)
- Baseline first-run (no alert storm on deploy), atomic state file, --once mode
- 20 unit tests passing; verified live against 192.168.0.5
2026-08-05 22:28:20 +03:00

18 lines
270 B
YAML

version: "3.8"
services:
server-monitor:
build: .
restart: unless-stopped
env_file: .env
volumes:
- monitor-state:/data
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
monitor-state: