Skip to content

Installation

Usage Dashboard ships as a Docker Compose stack with published images on GitHub Container Registry. You only need Docker (with the Compose plugin) to get running.

Quick start

Start from a machine with Git and Docker Compose installed. The default Compose file pulls published images, so there is no local build step.

  1. Clone the repository and enter it:

    bash
    git clone https://github.com/Skulldorom/usage-dashboard.git
    cd usage-dashboard
  2. Create your local environment file:

    bash
    cp .env.example .env
    openssl rand -base64 32 | tr '+/' '-_'

    Copy the generated value into ENCRYPTION_KEY in .env, replacing replace-with-generated-fernet-key. You can leave the rest of the defaults alone for a first local run.

  3. Start the stack:

    bash
    docker compose pull
    docker compose up -d
    docker compose logs backend
  4. Open http://localhost:3000, then use the one-time setup code from the backend logs to create the admin password.

Accessing the stack

Open the frontend container, which also proxies API traffic to the backend:

  • Frontend: http://localhost:3000
  • Backend health: http://localhost:3000/health
  • Homepage payload: http://localhost:3000/api/v1/homepage (requires a login session/scoped bearer token unless HOMEPAGE_ALLOWED_HOSTS allows the request host)

Set NGINX_HTTP_PORT in .env to change the external HTTP port. PostgreSQL is intentionally internal-only and is not published on the host.

Images

The default Compose stack pulls published images from GitHub Container Registry. Set IMAGE_TAG, BACKEND_IMAGE, or FRONTEND_IMAGE to pin or override them.

To build local images instead, see Docker images.

Self-hosted API usage dashboard.