# ![Beszel](<https://daemonless.io/images/logos/beszel.svg>) Beszel

[![Build Status](<https://img.shields.io/github/actions/workflow/status/daemonless/beszel/build.yaml?style=flat-square&amp;label=Build&amp;color=green>)](<https://github.com/daemonless/beszel/actions>) [![Last Commit](<https://img.shields.io/github/last-commit/daemonless/beszel?style=flat-square&amp;label=Last+Commit&amp;color=blue>)](<https://github.com/daemonless/beszel/commits>) [![OCI Pulls](<https://img.shields.io/docker/pulls/daemonless/beszel?style=flat-square&amp;label=OCI+Pulls&amp;color=blue>)](<https://hub.docker.com/r/daemonless/beszel>)

Lightweight server monitoring hub with historical data, container stats, and alerts.

- [![Beszel screenshot 1](<https://daemonless.io/images/screenshots/beszel/01-dashboard.png>)](</images/screenshots/beszel/01-dashboard.png>)
- [![Beszel screenshot 2](<https://daemonless.io/images/screenshots/beszel/02-system.png>)](</images/screenshots/beszel/02-system.png>)
- [![Beszel screenshot 3](<https://daemonless.io/images/screenshots/beszel/03-alerts.webp>)](</images/screenshots/beszel/03-alerts.webp>)

|  |  |
| --- | --- |
| **Port** | `8090` |
| **Registry** | [`ghcr.io/daemonless/beszel`](<https://github.com/daemonless/beszel/pkgs/container/beszel>) |
| **Daemonless** | [daemonless/beszel](<https://github.com/daemonless/beszel>) |
| **Source** | [henrygd/beszel](<https://github.com/henrygd/beszel>) |
| **Website** | [beszel.dev](<https://beszel.dev>) |

## First start and data

Open `http://<host>:8090` to create the initial admin account. Persistent PocketBase SQLite data, the generated SSH key (`id_ed25519`), and backups live in `/config/beszel_data`.

## Connecting FreeBSD hosts

Install `beszel-agent` natively on each FreeBSD host (`beszel-agent_freebsd_amd64.tar.gz` or `beszel-agent_freebsd_arm64.tar.gz` from upstream releases) so the agent has direct access to host CPU, ZFS, disk, temperature, and container metrics, then add the system in the hub UI.

## CLI subcommands

Run Beszel/PocketBase CLI commands as `bsd` in `/config`, for example:

```
podman exec beszel beszel superuser upsert admin@example.com <password>
```

## Prerequisites

Before deploying, ensure your host environment is ready. See the [Quick Start Guide](<https://daemonless.io/guides/quick-start/index.md>) for host setup instructions, including the security model for host vs. container privileges.

## Deployment

**Customize Paths, UID & Ports**

Install and manage **Beszel** on FreeBSD with [fjord](<https://fjord.daemonless.io>):

```
fjord install beszel
```

Or open the **App Store** in the fjord web UI and install **Beszel** from the wizard. New to fjord? See the [Install Guide](<https://fjord.daemonless.io/install/>).

```
services:
  beszel:
    image: "ghcr.io/daemonless/beszel:latest"
    container_name: beszel
    environment:
      - PUID=1000  # User ID for the application process
      - PGID=1000  # Group ID for the application process
      - TZ=UTC  # Timezone for the container
      # - APP_URL=  # Public URL of the hub (used in alert/email links and subpath routing)
      # - DISABLE_PASSWORD_AUTH=  # Disable password login (for OAuth2/OIDC-only setups)
      # - USER_CREATION=  # Allow creating additional user accounts via OAuth2/OIDC
      # - SHARE_ALL_SYSTEMS=  # Share all monitored systems across all users
      # - AGENT_LISTEN=  # Optional separate address/port (for example :45876) for agent-only WebSocket connections
      # - CHECK_UPDATES=  # Check GitHub for newer Beszel releases (defaults to false)
      # - CSP=  # Optional Content-Security-Policy response header value
      # - HEARTBEAT_URL=  # External URL to ping periodically for hub heartbeat monitoring
      # - AUTO_LOGIN=  # Email address of a user to automatically sign in
    volumes:
      - "/containers/beszel:/config"
    ports:
      - "8090:8090"
    # always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
    restart: always
```

Save as `compose.yaml`, then run `podman-compose up -d`.

> [!WARNING]
>
> Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

```
# .env

DIRECTOR_PROJECT=beszel
PUID=1000
PGID=1000
TZ=UTC
```

```
# appjail-director.yml

options:
  - virtualnet: ':<random> default'
  - nat:
services:
  beszel:
    name: beszel
    options:
      - container: 'args:--pull'
      - expose: '8090:8090 proto:tcp'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
    volumes:
      - beszel: /config
volumes:
  beszel:
    device: '/containers/beszel'
```

```
# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/beszel:${tag}
```

Save the files above, then run `appjail-director up`.

> [!WARNING]
>
> **Experimental**
>
> Bastille's OCI support is experimental. It requires `buildah` and shares the host network stack (`inherit`). Mount volumes with `--volume HOST JAIL`; without it, image-declared volumes are stored under `${bastille_volumesdir}/${jail}`.

```
services:
  beszel:
    name: beszel
    image: "ghcr.io/daemonless/beszel:latest"
    network:
      - mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
    volumes:
      - "/containers/beszel:/config"
```

Save as `bastille-compose.yml`, then run `bastille up`.

Open `http://<server>:8090` from another machine (the server's own browser can't use a published port).

## Parameters

### Environment Variables

| Variable | Default | Description |
| --- | --- | --- |
| `PUID` | `1000` | User ID for the application process |
| `PGID` | `1000` | Group ID for the application process |
| `TZ` | `UTC` | Timezone for the container |
| `APP_URL` | \`\` | Public URL of the hub (used in alert/email links and subpath routing) |
| `DISABLE_PASSWORD_AUTH` | `<DISABLE_PASSWORD_AUTH>` | Disable password login (for OAuth2/OIDC-only setups) |
| `USER_CREATION` | \`\` | Allow creating additional user accounts via OAuth2/OIDC |
| `SHARE_ALL_SYSTEMS` | \`\` | Share all monitored systems across all users |
| `AGENT_LISTEN` | \`\` | Optional separate address/port (for example :45876) for agent-only WebSocket connections |
| `CHECK_UPDATES` | \`\` | Check GitHub for newer Beszel releases (defaults to false) |
| `CSP` | \`\` | Optional Content-Security-Policy response header value |
| `HEARTBEAT_URL` | \`\` | External URL to ping periodically for hub heartbeat monitoring |
| `AUTO_LOGIN` | \`\` | Email address of a user to automatically sign in |

### Volumes

| Path | Description |
| --- | --- |
| `/config` | Persistent Beszel/PocketBase database, SSH key, and backups (/config/beszel\_data) |

### Ports

| Port | Protocol | Description |
| --- | --- | --- |
| `8090` | TCP | Web UI and agent WebSocket API |

## Version Tags

| Tag | Description | Best For |
| :--- | :--- | :--- |
| `latest` | **Upstream Binary**. Built from official release. | Most users — recommended. |

> [!NOTE]
>
> **Implementation Details**
>
> - **Architectures:** amd64
> - **User:** `bsd` (UID/GID set via [PUID/PGID](<https://daemonless.io/guides/permissions/index.md>)). Defaults to `1000:1000`.
> - **Base:** Built on `ghcr.io/daemonless/base` (FreeBSD 15.1).

---

Need help? Join our [Discord](<https://discord.gg/Kb9tkhecZT>) community.
