# documentation: https://github.com/henrygd/beszel?tab=readme-ov-file#getting-started
# slogan: A lightweight server resource monitoring hub with historical data, docker stats, and alerts.
# category: monitoring
# tags: beszel,monitoring,server,stats,alerts
# logo: svgs/beszel.svg
# port: 8090

# When adding a System in the UI, the Host/IP must be beszel-agent (or the container name, ex: beszel-agent-pswog4s8wks4o8osw44cw0k8)
# Add the public Key in "Key" env variable below
services:
  beszel:
    image: henrygd/beszel:latest
    environment:
      - SERVICE_URL_BESZEL_8090
    volumes:
      - beszel_data:/beszel_data

  beszel-agent:
    image: henrygd/beszel-agent
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - PORT=45876
      - KEY=${KEY}
