Spin up a local Postgres + Keycloak stack seeded from a Cloud-IAM cold backup.
To reuse a backup locally, first attach a GPG key to your organization. This protects the data in transit and at rest: only Cloud-IAM and you can decrypt it.
Once the key is registered, download the latest *-backup.bin.gpg for your deployment from the Cloud-IAM UI or API.
gpg --batch --yes --pinentry-mode=loopback \
--passphrase "$GPG_PASSPHRASE" \
--decrypt --output backups/foo-backup.bin \
foo-backup.bin.gpgThe decrypted *.bin must land in backups/.
cp .env.example .env
# tweak ports and credentials if the defaults don't suit youOptional extras:
cp keycloak.env.example keycloak.env— declare extraKC_*env vars forwarded to Keycloak.- drop custom extension jars into
providers/— bind-mounted to/opt/keycloak/providers/.
docker compose upKeycloak is served on http://localhost:8080. Sign in with the admin credentials from your Cloud-IAM deployment.
docker compose down -vStops the containers and removes the pgdata volume, so the next
docker compose up -d re-imports the backup from scratch.
