Beszel is a lightweight, self‑hosted server monitoring platform that combines a central Hub with distributed Agents to track system and Docker container performance, historical data, and alerts. It’s designed to be simple, resource‑efficient, and easy to deploy in homelabs or production environments
sudo apt update && sudo apt upgrade -ycurl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
sudo apt install docker-compose-pluginsudo usermod -aG docker $USERsudo systemctl enable dockersudo rebootdocker run hello-worldIn ~/docker/beszel create docker-compose.yml
services:
beszel-agent:
image: henrygd/beszel-agent
container_name: beszel-agent
restart: unless-stopped
network_mode: host
environment:
LISTEN: "45876"
KEY: "YOUR-KEY" # This must match the key you set on the Beszel server
HUB_URL: "http://192.168.xx.xx:8095" # Use the IP address of the beszel server
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/home-directory/docker/beszel/beszel_agent_data:/var/lib/beszel-agent:rw
- /var/lib/beszel/metrics:/var/lib/beszel/metrics:ro
To generate the KEY, browse to your Beszel Hub and click on Add System.
From within ~/docker/beszel run:
docker compose up
docker logs beszel
Open your browser and go to "http://<192.168.xx.xx>:8095. You should see your Pi listed.
If you find my content useful, please consider supporting this page: