Skip to content

Installation

Will Luck edited this page Nov 16, 2026 · 12 revisions

Installation

This page covers every way to run ForgeMap: the demo, set up in the browser, GitHub, Gitea or Forgejo, both, the tokens it needs and the Docker details. Back to the README.

Only an install set up in the browser has a sign-in. Read Privacy first. Publish the port on loopback (-p 127.0.0.1:8080:8080) until setup is finished, and, with a config file or the quick-start variables, unless something in front of it guards it.

Contents

Try the demo

An invented team's projects from a built-in fake forge: no token, no config, no network.

docker run --rm -p 127.0.0.1:8080:8080 ghcr.io/will-luck/forgemap -demo

Open http://127.0.0.1:8080. Every page says it is demo data.

Set it up in the browser

No token or config in the command: ForgeMap asks for them in the browser.

docker run -d --name forgemap --restart unless-stopped \
  --read-only --cap-drop ALL --security-opt no-new-privileges \
  -p 127.0.0.1:8080:8080 \
  -v forgemap-data:/data \
  ghcr.io/will-luck/forgemap:latest
docker logs forgemap
  • The setup code: the log has the line setup: open the page and type this code to make your account: <code>. Open http://127.0.0.1:8080, type it, make your account, connect your forges (each token is tested before it is saved) and choose who can see the page.
  • When it applies: no config file, none of GITEA_URL, GITEA_TOKEN, GITHUB_TOKEN or GITHUB_OWNERS, and a new data volume. A volume ForgeMap has used before, with no settings in it, stops the start as before.
  • Settings changes everything later, without a restart.
  • Forgot the password? docker exec forgemap forgemap -reset-password prints a new one and signs every browser out.

Four things to know before you open it up:

  • Set it up before you publish the port anywhere but 127.0.0.1: until the account exists, whoever has the setup code can make it.
  • Behind a reverse proxy, the proxy must pass the browser's Host (or set X-Forwarded-Host) and set X-Forwarded-Proto, or every form is refused as sent from another site.
  • Plain HTTP sends the password across the network in clear. Use HTTPS in front, or keep the page on your LAN or VPN.
  • Give it a host name of its own when one address serves other apps: cookies are shared across the ports of one host name.

GitHub only

docker run -d --name forgemap --restart unless-stopped \
  --read-only --cap-drop ALL --security-opt no-new-privileges \
  -p 127.0.0.1:8080:8080 \
  -e GITHUB_TOKEN=github_pat_... \
  -e GITHUB_OWNERS=your-user,your-org \
  -e TZ=Europe/Paris \
  -v forgemap-data:/data \
  ghcr.io/will-luck/forgemap:latest
  • Each public repo of the listed owners becomes a project.
  • Leave GITHUB_OWNERS out to track only the token user's own repos; list orgs or other users to track theirs.
  • Private repos stay off. To show them, add -e FORGEMAP_INCLUDE_PRIVATE=true: their names, issues, commits and CI then show to anyone who can reach the page, so put a login in front of it first (privacy).

Gitea or Forgejo only

docker run -d --name forgemap --restart unless-stopped \
  --read-only --cap-drop ALL --security-opt no-new-privileges \
  -p 127.0.0.1:8080:8080 \
  -e GITEA_URL=https://git.example.com \
  -e GITEA_TOKEN=... \
  -e GITEA_OWNERS=your-user,your-org \
  -v forgemap-data:/data \
  ghcr.io/will-luck/forgemap:latest
  • The same rule: leave GITEA_OWNERS out to track only the token user's own repos (not repos you collaborate on, nor your orgs' repos); list orgs or other users to track theirs.
  • The token is required. Gitea and Forgejo need it; without one their API refuses the list.
  • Private repos stay off here too: -e FORGEMAP_INCLUDE_PRIVATE=true shows them, behind a login.

Both forges

Set both sets of variables, or write a config file. A repo with the same name on both forges becomes one project: the first forge holds the primary (tags, releases, CI, plans), the second is a mirror (stars, its issues, its latest release).

# config/forgemap.yml
site:
  title: Team status
  timezone: Europe/Paris
include_private: false   # true shows private repos: only behind a login
forges:
  - id: gitea
    type: gitea          # or forgejo
    url: https://git.example.com
    token: ${GITEA_TOKEN}
    owners: [acme]
  - id: github
    type: github
    token: ${GITHUB_TOKEN}
    owners: [acme]
    heatmap: false       # the mirrored commits are already counted on Gitea
docker run -d --name forgemap --restart unless-stopped \
  --read-only --cap-drop ALL --security-opt no-new-privileges \
  -p 127.0.0.1:8080:8080 \
  -e GITEA_TOKEN=... -e GITHUB_TOKEN=... \
  -v "$PWD/config:/config:ro" \
  -v forgemap-data:/data \
  ghcr.io/will-luck/forgemap:latest

Docker Compose

One service with the settings of Both forges: the config file in config/forgemap.yml beside it, and the tokens in a .env file there (Compose reads it), never in the file itself.

# compose.yaml
services:
  forgemap:
    image: ghcr.io/will-luck/forgemap:latest
    restart: unless-stopped
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      GITEA_TOKEN: ${GITEA_TOKEN}
      GITHUB_TOKEN: ${GITHUB_TOKEN}
    volumes:
      - ./config:/config:ro
      - forgemap-data:/data
    read_only: true
    cap_drop: [ALL]
    security_opt: [no-new-privileges:true]

volumes:
  forgemap-data:
docker compose up -d
  • Only on 127.0.0.1: a config file has no sign-in, so put a login in front before you open it up (Behind a login).
  • No healthcheck: the image has none on purpose. GET /healthz answers with each source's state if you want one (API).
  • No config file? Drop the ./config line and set the variables of GitHub only or Gitea or Forgejo only under environment:, or set none and set it up in the browser.

Behind a login

For a config file or quick-start install, which has no sign-in of its own. (Set up in the browser, ForgeMap signs you in itself.) Put a reverse proxy in front that asks for a login. With Caddy:

status.example.com {
  basic_auth {
    you HASH_FROM_CADDY_HASH_PASSWORD
  }
  reverse_proxy 127.0.0.1:8080
}
  • The hash: caddy hash-password prints it for your password.
  • Caddy in the same Compose file? Use reverse_proxy forgemap:8080 and drop ForgeMap's ports: lines.
  • Live updates pass through: Caddy streams /events as it comes.
  • Single sign-on: a forward-auth proxy such as oauth2-proxy or Authelia in front works the same way.

Images and binaries

What Where
Images ghcr.io/will-luck/forgemap and willluck/forgemap on Docker Hub, for amd64 and arm64
Binaries Linux (amd64, arm64, armv7) and macOS (amd64, arm64), on the releases page

Run the binary as forgemap with the same variables and DATA_DIR set to a folder it can write, or forgemap -demo.

Tokens and scopes

ForgeMap only reads. Give it a token that can only read.

Gitea and Forgejo

An access token (Settings, Applications) with read:repository, read:issue, read:user and read:organization. A token is required: without one the API answers 401 and the forge's source shows as failing.

GitHub

A fine-grained token with read-only Metadata, Contents, Issues, Pull requests and Actions on the repos to track (choose "All repositories" to pick up new ones). Use a fine-grained token where you can. A classic token with no scopes reads public repos only; for private repos it needs repo, which also allows writing. ForgeMap never writes, but that token could.

What needs a GitHub token:

  • listing an owner's repos (without one, only repos the projects file names are read);
  • full detail: tags, commits, PRs, CI runs, the changelog and plans;
  • the contribution calendar for the ship log, and the search that finds issues filed from ideas;
  • anything private.

Rate limits

  • Without a token GitHub allows 60 requests an hour, so a tokenless forge reads each named repo lightly: the repo, its open issues and its latest release, every 30 minutes.
  • With a token the limit is 5,000 an hour, and every read is conditional (ETags), so unchanged data costs little.
  • A spent limit is named in the forge's status with the time it resets, and the forge is asked nothing until then.

Self-signed certificates

A forge whose certificate is signed by your own CA fails with "a certificate ForgeMap does not trust". Mount the CA file and point SSL_CERT_FILE at it:

  -v "$PWD/certs/forge-ca.pem:/certs/forge-ca.pem:ro" \
  -e SSL_CERT_FILE=/certs/forge-ca.pem \

SSL_CERT_FILE replaces the image's own list of public roots, so when the same install also reads GitHub, make the file the public roots with your CA added.

Docker

  • Image: Alpine, runs as uid 1000, listens on 8080, no HEALTHCHECK (GET /healthz answers with each source's state if you want one).
  • /data is a volume: state.json (events for 90 days, probe history) and the last good projects and ideas files. Set up in the browser, it also holds settings.json (mode 0600): the forge tokens in plain text, the password hash, the signing secrets and the feed key, so treat a copy of the volume as a secret. Use a named volume, or a directory uid 1000 can write.
  • /config is where forgemap.yml is read from. Bind-mount the directory, read-only.
  • Locked down: the commands above add --read-only, --cap-drop ALL and --security-opt no-new-privileges (in Compose: read_only, cap_drop, security_opt). ForgeMap writes only to /data and needs no Linux capabilities. The demo also writes to /tmp: run it read-only with --tmpfs /tmp too.
  • Tokens come in as -e variables and are named in the file as ${GITHUB_TOKEN}.
  • Notes: mount the notes folder read-only. See Notes.

Containers on the page

Containers are optional. With docker.feed or docker.host set, "Where it runs" shows each project's containers (see Where it runs).

Setting How Notes
none Nothing about containers is shown
docker.feed A host cron runs scripts/docker-feed.sh every minute; mount its directory read-only at /feed No Docker socket in the container. The safe default
docker.host The Engine API: tcp://socket-proxy:2375 or unix:///var/run/docker.sock Prefer a socket proxy that allows only container listing. A mounted socket gives control of Docker even with :ro, and needs --group-add with the socket's group

Configure it further

One YAML file, /config/forgemap.yml (FORGEMAP_CONFIG names another path), with ${VAR} expansion so tokens stay in the environment. Every key, its default and an example are in docs/configuration.md; forgemap.example.yml is a complete file to copy.

Section What it sets
site Page title, time zone, the names notes use for you
include_private Whether private repos show at all (off by default)
forges Each Gitea, Forgejo or GitHub account: URL, token, owners, heatmap
projects An optional projects file: names, categories, grouped repos, containers, URLs to probe, holds, relations
ideas Idea labels, an optional ideas file, the filed-idea marker
needs_you Which labels, assignments and review requests wait on you
notes An optional notes folder
plans Where plan files live in each repo
docker A feed file or the Docker Engine API
probes Whether repo homepages are probed
listen, data_dir Address and state directory

Without a file, the environment variables above make an env-only setup.

Clone this wiki locally