Beszel on Raspberry Pi

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

🔍 What Beszel Does

🚀 Docker Installation Steps

  1. Update your system
    sudo apt update && sudo apt upgrade -y
  2. Install Docker
    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
  3. Install Docker Compose
    sudo apt install docker-compose-plugin
  4. Add your user to the Docker group
    sudo usermod -aG docker $USER
  5. Enable Docker at boot
    sudo systemctl enable docker
  6. Reboot
    sudo reboot
  7. Test Docker
    docker run hello-world

📁 Setup Beszel

mkdir -p ~/docker mkdir ~/docker/beszel

🧾 Docker Compose File

In ~/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.

▶️ Start Beszel

From within ~/docker/beszel run:

docker compose up

📜 View Logs

docker logs beszel

🌐 Access Web Interface

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:

☕ Buy Me a Coffee