Analytics & Monitoring512 MB RAM (Starter or Pro)· Port 3000

Deploy Grafana Observability Dashboards with Docker Compose

Open-source metrics, logs, and traces visualization platform for Prometheus, PostgreSQL, and Loki.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  grafana:
    image: grafana/grafana-oss:latest
    restart: unless-stopped
    ports:
      - "3000:3000"
    environment:
      - GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:-admin}
      - GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-change-me-strong-password}
      - GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-https://grafana.yourdomain.com}
    volumes:
      - app_data:/var/lib/grafana


volumes:
  app_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
GF_SECURITY_ADMIN_USERadminInitial Grafana administrator username.
GF_SECURITY_ADMIN_PASSWORDchange-me-strong-passwordInitial Grafana administrator password.
GF_SERVER_ROOT_URLhttps://grafana.yourdomain.comPublic root URL for OAuth callbacks and alert links.

Grafana Observability Dashboards Self-Hosting FAQs

How much RAM is required to self-host Grafana Observability Dashboards in production?

Grafana Observability Dashboards requires a minimum of 512 MB RAM (Starter or Pro). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose Grafana Observability Dashboards with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the grafana/grafana-oss:latest container on Vexlo Cloud, set the exposed port to 3000, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for Grafana Observability Dashboards?

Mount /var/lib/grafana to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →