Quickstart
Generate local credentials, start the services and wait for readiness.
Docker Hub (Recommended)
Requires Docker Compose v2.20+ and Node.js 24 for the setup helper. On Windows use curl.exe instead of curl:
curl --fail --location -o docker-compose.yml https://raw.githubusercontent.com/idenplane/idenplane/main/docker-compose.yml
curl --fail --location -o setup-env.cjs https://raw.githubusercontent.com/idenplane/idenplane/main/scripts/setup-env.cjs
node setup-env.cjs
docker compose up -d --wait --wait-timeout 180
Once the services are healthy, open:
| URL | Description |
|---|---|
| http://localhost:3000/console | Admin Console |
| http://localhost:3000/api | Swagger API Docs |
| http://localhost:3000/health/live | Health Check |
Prometheus metrics are served at /admin/metrics and need admin credentials, so a browser visit gets 401:
curl -H "x-admin-api-key: $ADMIN_API_KEY" http://localhost:3000/admin/metrics
Generated Credentials
Sign in with the credentials generated in your local .env file:
| Field | Value |
|---|---|
| Username | admin |
| Password | Value of ADMIN_PASSWORD in .env |
| API Key | Value of ADMIN_API_KEY in your .env file |
Keep .env private and back it up: changing its webhook encryption keys makes stored webhook secrets unreadable. The helper never overwrites an existing file. Changing POSTGRES_PASSWORD in .env does not rotate a password in an existing database. Local services bind to localhost; configure HTTPS, backups and a pinned release image before production use.
What's Next?
Installation Guide Detailed installation instructions for Docker, Kubernetes, and bare metal
Admin Console Learn how to configure realms, users, and clients
First Application Register your first OAuth client and integrate with your app
From Source
If you prefer to build from source, you'll need:
Prerequisites: Node.js 24, PostgreSQL 16+
git clone https://github.com/idenplane/idenplane.git
cd idenplane
# Install dependencies
npm install
cd admin-ui && npm install && cd ..
# Configure
node scripts/setup-env.cjs
# Edit DATABASE_URL in .env if your local PostgreSQL uses different credentials
# Setup database
npm run prisma:generate
npm run prisma:migrate
npm run prisma:seed # Optional: sample data
# Build & start
npm run build:all
npm run start:prod
Development Mode
For local development with hot-reload:
# Start PostgreSQL
docker compose up db -d
# Backend (watch mode)
npm run start:dev
# Admin UI (separate terminal)
npm run admin:dev
# Run tests
npm test # Unit tests
npm run test:e2e # E2E tests (requires PostgreSQL)
Database Commands
npm run prisma:generate # Regenerate Prisma client
npm run prisma:migrate # Apply pending migrations
npm run prisma:seed # Seed with test data
npm run db:setup # Generate + migrate + seed
Troubleshooting
Container fails to start
Check the logs:
docker compose logs app
Ensure port 3000 is not already in use:
lsof -i :3000
Cannot connect to database
If using an external PostgreSQL instance, verify your DATABASE_URL in .env:
DATABASE_URL=postgresql://user:password@host:5432/idenplane
Health check fails
Wait 10-15 seconds for the server to fully initialize, then check:
curl http://localhost:3000/health/ready
Horizontal Scaling
Idenplane is fully stateless — all state is stored in PostgreSQL (and optionally Redis). Scale horizontally:
# Two instances + Nginx LB + Redis, built from your checkout.
# Needs the same variables as docker-compose.yml (node scripts/setup-env.cjs writes them to .env).
docker compose -f docker-compose.cluster.yml up -d --build
For production clusters, enable Redis for shared session storage:
SESSION_STORE=redis
REDIS_URL=redis://your-redis:6379