Keygen
★ 1.6kAbout
Community Ratings
No ratings yetNew this week
Read recap →Features
- license key validation
- entitlements
- device activation
- request logs
- event logs
- environments
- permissions
- import/export
- OCI/Docker registry support
- SSO/SAML
Details
- Last Updated
- Nov 24, 2026
- Created
- Apr 10, 2016
- Install Methods
- source
- Requirements
- RubyBundlerRailsSidekiq
- Authentication
- saml
- API
- REST
- Backup & Export
- import/export
- Runtime / Stack
- Ruby
- Privacy & Independence
- Cloud: OptionalOffline Capable
- User Model
- Multi-User
- Deployment
Deployment: Docker Compose ✓8 Containers — heavy hosting footprintRuns as 8 containers
Run Keygen yourself
Pick how much you want to manage.
netcupBest match
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
Hetzner
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
DigitalOcean
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
1 more way to host
Some links earn us a commission. netcup pays us one and is our preferred VPS host.
Is this your project? Sponsor a listing
Run Keygen with Docker Compose
Compose file from the Keygen project repository.
8 services · database: postgres · infra: postgres, redis, caddy · 1 unclassified (api)
no resource limits declared
needs persistent storage (7 volumes)
compose.yaml · @ 78cf3fd · scanned Nov 3, 2026
services:
setup:
profiles: [ "setup" ]
image: keygen/api:latest
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
env_file:
- .env
command: >
sh -c "
until pg_isready -h postgres -U ${POSTGRES_USER}; do
echo 'Waiting for PostgreSQL...'
sleep 1
done
bundle exec rails keygen:setup
"
depends_on: [ postgres ]
tty: true
stdin_open: true
console:
profiles: [ "console" ]
image: keygen/api:latest
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
env_file:
- .env
command: bundle exec rails console
depends_on: [ postgres ]
tty: true
stdin_open: true
migrate:
profiles: [ "migrate" ]
image: keygen/api:latest
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
env_file:
- .env
command: bundle exec rails db:migrate
depends_on: [ postgres ]
postgres:
image: postgres:17.5
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis
ports:
- "6379:6379"
volumes:
- redis:/data
web:
image: keygen/api:latest
ports:
- "3000:3000"
networks:
- default
- web_network
command: "web"
env_file:
- .env
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
volumes:
- keygen:/etc/keygen
depends_on:
- postgres
- redis
worker:
image: keygen/api:latest
command: "worker"
env_file:
- .env
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
volumes:
- keygen:/etc/keygen
depends_on:
- postgres
- redis
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
env_file:
- .env
environment:
CADDY_HOSTS: "${CADDY_HOSTS:-$KEYGEN_HOST}"
command: ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]
depends_on:
- web
networks:
- default
- web_network
networks:
web_network:
name: web_network
volumes:
keygen:
postgres:
redis:
caddy_data:
caddy_config:
This file may be out of date. Check the Keygen documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.