Skip to content
GitAudience

Run GitAudience on your server

.md

Start GitAudience with Docker Compose, sign in with a code sent by email, then add your first project and start the sync of its stargazers.

You end with GitAudience running on your server, an owner account, and a first project that follows one of your public GitHub repositories, with the first sync of its stargazers under way.

GitAudience ships as one Docker image, notifuse/gitaudience, published on the GitHub Container Registry. It holds the server, the background worker and the console. Docker Compose pulls it for you and runs it next to its own PostgreSQL 18.

Before you start

  • A server with Docker Engine and Docker Compose v2. Check with docker compose version.
  • A domain name for the instance, and a reverse proxy with a TLS certificate in front of it, such as Caddy, Traefik or Coolify. GitAudience only accepts an https:// address, except http://localhost and http://127.0.0.1 for a trial on your own machine.
  • An SMTP server. GitAudience sends sign-in codes by email: without SMTP, nobody can sign in, and the instance refuses to start.
  • A public GitHub repository with stargazers, and a GitHub account that can create a GitHub App on the repository’s owner: your personal account, or an organization where you have that right.

Install and add a project

  1. Download the deployment files

    You need four files next to the image, laid out like this in an empty directory:

    gitaudience/
    ├── compose.yaml
    ├── backup.sh
    └── postgres/
        ├── roles.sql
        └── initdb/
            └── 10-roles.sh

    The postgres/ files create the single application database owner gitaudience the first time PostgreSQL starts on an empty volume.

  2. Create the .env file

    Replace the address, the email and the SMTP values with yours, then run this in the same directory:

    test -e .env || cat > .env <<EOF
    GITAUDIENCE_IMAGE=notifuse/gitaudience:<version>
    PUBLIC_URL=https://audience.example.com
    ROOT_EMAIL=you@example.com
    
    SECRET_KEY=$(openssl rand -base64 32)
    
    POSTGRES_PASSWORD=$(openssl rand -hex 24)
    
    SMTP_HOST=smtp.example.com
    SMTP_PORT=587
    SMTP_USERNAME=
    SMTP_PASSWORD=
    SMTP_FROM_EMAIL=gitaudience@example.com
    EOF
    • GITAUDIENCE_IMAGE: the image and the release you run. Set the version explicitly.
    • PUBLIC_URL: the address people will type to open the console.
    • ROOT_EMAIL: your address. It becomes the first owner and can never be removed.
    • Generate one random POSTGRES_PASSWORD and one SECRET_KEY (32 random bytes in base64). Keep SECRET_KEY with your backups.
    • The four passwords: PostgreSQL’s own, and one per database role. They end up in connection URLs, so keep to letters, digits, - and _, as openssl rand -hex does.
    • SMTP_USERNAME and SMTP_PASSWORD: both or neither. Left empty, mail is sent without authentication.

    Installation lists every variable.

  3. Start GitAudience

    docker compose up -d

    Compose starts PostgreSQL, then runs migrate once to create the database schema, then starts api and worker. The console, the REST API and the MCP server all listen on port 3000.

    To follow the logs, run docker compose logs -f api worker.

  4. Point your domain at it

    In your reverse proxy, send every request for your domain to port 3000 of the server: the console, /api and /mcp share that one address.

    The reference compose file sets TRUST_PROXY=1, for exactly one proxy in front of GitAudience. Production checklist covers the other settings to check.

  5. Sign in

    Open your PUBLIC_URL. On Sign in, enter the address you set in ROOT_EMAIL under Email address, and click Send a code.

    The code arrives by email. Type the 6 digits under 6-digit code. A code is valid for 10 minutes, for at most 5 attempts. Resend code sends a new one.

    The Sign in screen of an instance after Send a code: the 6-digit code field under Enter the code, with Resend code and Change email below it
    The Sign in screen of an instance after Send a code: the 6-digit code field under Enter the code, with Resend code and Change email below it

    If no code arrives, check the spam folder, then the SMTP values in .env and docker compose logs api. To get in without email, run docker compose exec api gitaudience login-link you@example.com: it prints a sign-in link valid for 15 minutes. Open it in your browser, not in a chat app, whose link preview would use it up.

  6. Connect your GitHub account

    With no project yet, the console opens on Choose a public GitHub repository, the first of the 7 steps that add a project.

    Under 1. Connect your GitHub account:

    1. Pick the Account type: GitHub organization or Personal GitHub account, whichever owns the repository.
    2. Enter the repository under Public repository (owner/name or GitHub URL), such as acme/orbit.
    3. Click Create GitHub App on GitHub, then confirm the creation on GitHub.

    GitHub sends you back to the console, which shows Creating the GitHub App for acme… for a few seconds. The App is private, belongs to that account, and is reused for every later project of the same account.

  7. Install the App on your repository

    Under 2. Install the GitHub App for acme, click Install on GitHub.

    On GitHub, choose Only select repositories, pick the public repository you want to analyse, and install. GitAudience refuses an installation on all repositories.

    Back in the console, Granted repositories lists what the installation grants. A private repository shows Private (not supported).

  8. Create the project

    Select the repository and click Create project and continue.

    Step 1 of adding a project, Choose a public GitHub repository: the GitHub App for acme is installed, and acme/orbit is selected under Granted repositories, above Create project and continue
    Step 1 of adding a project, Choose a public GitHub repository: the GitHub App for acme is installed, and acme/orbit is selected under Granted repositories, above Create project and continue

    GitAudience creates the project and starts the first sync of its stargazers right away. The console moves on to step 2, Configure with your AI.

Check that it works

  • docker compose ps -a shows postgres, api and worker running, and migrate exited with code 0.
  • https://<your domain>/health answers {"status":"ok"}.
  • You are signed in and the console shows step 2 of the project setup. The progress of the first sync shows at step 7, Calibration.

Next steps