Skip to content

Grafana Grafana

Description / nameInput element
Container Registry
Container Configuration Root Path
Timezone
User ID
Group ID
Grafana Host Port
Grafana /config Path

Build Status Last Commit OCI Pulls

Grafana is an open source and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Port 3000
Registry ghcr.io/daemonless/grafana
Daemonless daemonless/grafana
Source grafana/grafana
Website grafana.com/grafana

Version Tags

Multi-arch manifests — resolve automatically to the right image for your platform.

Tag Description Best For
latest / pkg Installed from the FreeBSD quarterly package repository. Most users — recommended.
pkg-latest Installed from the FreeBSD latest package repository. Alternative build.
Tag Description Best For
latest-amd64 / pkg-amd64 Installed from the FreeBSD quarterly package repository. Most users — recommended.
pkg-latest-amd64 Installed from the FreeBSD latest package repository. Alternative build.
Tag Description Best For
latest-aarch64 / pkg-aarch64 Installed from the FreeBSD quarterly package repository. Most users — recommended.
pkg-latest-aarch64 Installed from the FreeBSD latest package repository. Alternative build.

Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions, including the security model for host vs. container privileges.

Deployment

Database Where the app keeps its data. The default needs nothing else running.

grafana:pkg — data in /containers/grafana

A file in the app's config folder. Right for one person, nothing extra to run.

1. Save as .env and fill in what is empty:


2. Save as compose.yaml:

name: grafana

services:
  grafana:
    image: ghcr.io/daemonless/grafana:pkg
    container_name: grafana
    restart: unless-stopped

    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - GF_DATABASE_TYPE=${GF_DATABASE_TYPE:-}
      - GF_DATABASE_HOST=${GF_DATABASE_HOST:-}
      - GF_DATABASE_USER=${GF_DATABASE_USER:-}
      - GF_DATABASE_PASSWORD=${GF_DATABASE_PASSWORD:-}
      - GF_DATABASE_NAME=${GF_DATABASE_NAME:-}

    volumes:
      - "/containers/grafana:/config"

    ports:
      - 3000:3000

Then run podman-compose up -d.

Database Where the app keeps its data. The default needs nothing else running.

grafana:pkg — data in /containers/grafana

A file in the app's config folder. Right for one person, nothing extra to run.

# .env

DIRECTOR_PROJECT=grafana
PUID=1000
PGID=1000
TZ=UTC
GF_DATABASE_TYPE=sqlite3
GF_DATABASE_HOST=
GF_DATABASE_USER=
GF_DATABASE_PASSWORD=<GF_DATABASE_PASSWORD>
GF_DATABASE_NAME=
# appjail-director.yml

options:
  - virtualnet: ':<random> default'
  - nat:
services:
  grafana:
    name: grafana
    options:
      - container: 'args:--pull'
      - expose: '3000:3000 proto:tcp'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
        - GF_DATABASE_TYPE: !ENV '${GF_DATABASE_TYPE}'
        - GF_DATABASE_HOST: !ENV '${GF_DATABASE_HOST}'
        - GF_DATABASE_USER: !ENV '${GF_DATABASE_USER}'
        - GF_DATABASE_PASSWORD: !ENV '${GF_DATABASE_PASSWORD}'
        - GF_DATABASE_NAME: !ENV '${GF_DATABASE_NAME}'
    volumes:
      - GRAFANA_CONFIG_PATH: /config
volumes:
  GRAFANA_CONFIG_PATH:
    device: '/containers/grafana'
1
2
3
4
5
6
7
# Makejail

ARG tag=latest

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

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

Access at: http://localhost:3000

Interactive Configuration

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
GF_DATABASE_TYPE `` sqlite3, postgres or mysql; set by the Database choice. Empty keeps grafana.ini
GF_DATABASE_HOST `` Database host, optionally host:port (Database choice)
GF_DATABASE_USER `` Database user (Database choice)
GF_DATABASE_PASSWORD <GF_DATABASE_PASSWORD> Database password (Database choice)
GF_DATABASE_NAME `` Database name (Database choice)

Volumes

Path Description
/config Configuration, data, logs, plugins and provisioning

Ports

Port Protocol Description
3000 TCP Web UI

Implementation Details

  • Architectures: amd64, aarch64
  • User: bsd (UID/GID set via PUID/PGID). Defaults to 1000:1000.
  • Base: Built on ghcr.io/daemonless/base (FreeBSD 15.1).

Need help? Join our Discord community.