Getting started
What it does
Section titled “What it does”LeanPortfolio connects to your Azure DevOps organization with a read-only token and turns its work items, iterations and pull requests into the views a product or delivery lead needs: a portfolio roadmap per team, OKRs linked to epics, and flow metrics that say how work moves.
It is free software (AGPL-3.0), runs as one docker compose stack, and every user brings their own
Azure DevOps token, so there are no shared credentials to manage.
Step by step
Section titled “Step by step”You need Docker with Compose. Node and pnpm are only needed to develop the frontend.
-
Start the stack. Clone the repository, create the two local files and bring everything up:
Terminal window git clone https://github.com/Lean-Improvements/LeanPortfolio.gitcd LeanPortfoliocp docker-compose.override.yml.example docker-compose.override.ymlecho "ENVIRONMENT=development" > .envdocker compose up --builddocker-compose.override.ymlpublishes ports 80 and 8000 on your machine. The basedocker-compose.ymlpublishes none on purpose: in production a reverse proxy owns 80 and 443.ENVIRONMENT=developmentlets the backend boot with the example secrets. The compose file defaults toproduction, where it refuses them.
-
Create a user. Signing up sends a verification code by email, which needs AWS SES. To try LeanPortfolio locally, create a verified user from another terminal instead:
Terminal window docker compose exec leanportfolio-backend python scripts/seed_e2e_user.py -
Sign in. Open
http://localhostand, on Sign In, entere2e@example.comas Email andE2ETest123*as Password. Press Sign In. -
Connect Azure DevOps. Go to Settings → Datasource and connect your organization with a read-only token: see Azure DevOps.
-
Sync your first view. Create a roadmap or a burndown and press Sync.
Stop the stack with docker compose down, which keeps your data, or docker compose down -v,
which deletes it.
Troubleshooting
Section titled “Troubleshooting”The migration container exits with “JWT_SECRET is weak or a known default”
Section titled “The migration container exits with “JWT_SECRET is weak or a known default””The .env file is missing ENVIRONMENT=development, so the stack runs as production and the
backend refuses the example JWT_SECRET and ENCRYPTION_KEY. Create the file as in step 1 and run
docker compose up --build again.
http://localhost does not answer
Section titled “http://localhost does not answer”The ports are not published: docker-compose.override.yml is missing. Copy it from
docker-compose.override.yml.example as in step 1. Compose loads it on every up.
The sign-up code never arrives
Section titled “The sign-up code never arrives”Sign-up emails need AWS SES (AWS_* and SENDER_EMAIL). Locally, create the user with the script
in step 2.

