Examples
These example files are referenced by the CLI documentation. Download them and adapt them to your environment.
Docker Compose stacks
| File | Purpose | Docs |
|---|---|---|
| docker-compose.keycloak.yml | Keycloak + PostgreSQL for local auth | grapity init |
| docker-compose.kong.yml | Kong + PostgreSQL + httpbin for gateway provisioning | Quickstart |
| docker-compose.grapity-db.yml | PostgreSQL for the Registry backend | grapity init |
Keycloak realm
| File | Purpose |
|---|---|
| keycloak/realm-export.json | Example realm with grapity-cli and grapity-hub clients and a demo / demo user |
Quick start
Download the Keycloak stack and realm, then start Keycloak:
bash
mkdir -p grapity-examples/keycloak
curl -L https://grapity.dev/docs/examples/docker-compose.keycloak.yml \
-o grapity-examples/docker-compose.keycloak.yml
curl -L https://grapity.dev/docs/examples/keycloak/realm-export.json \
-o grapity-examples/keycloak/realm-export.json
cd grapity-examples
docker compose -f docker-compose.keycloak.yml down -v
docker compose -f docker-compose.keycloak.yml up -dKeycloak imports the realm only on first startup, so use down -v whenever you update realm-export.json.
TIP
These files are copies of the internal development stack. If you are working inside the Grapity repository itself, you may prefer the versions under docs/local-test/.