Skip to content

Examples

These example files are referenced by the CLI documentation. Download them and adapt them to your environment.

Docker Compose stacks

FilePurposeDocs
docker-compose.keycloak.ymlKeycloak + PostgreSQL for local authgrapity init
docker-compose.kong.ymlKong + PostgreSQL + httpbin for gateway provisioningQuickstart
docker-compose.grapity-db.ymlPostgreSQL for the Registry backendgrapity init

Keycloak realm

FilePurpose
keycloak/realm-export.jsonExample 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 -d

Keycloak 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/.

Released under the Apache 2.0 License.