# Keycloak Wiki Cafe's configuration for a Keycloak deployment. Originally slimmed down from an `abra` [recipe](https://git.coopcloud.tech/coop-cloud/keycloak) by [Co-op Cloud](https://coopcloud.tech/). ## Extensions This stack includes the following extensions: - (keycloak-events)[https://github.com/p2-inc/keycloak-events] - (keycloak-restrict-client-auth)[https://github.com/sventorben/keycloak-restrict-client-auth] ### Installing extensions To install the extensions, download their JAR files and place them in the `providers` directory. Then, restart the Keycloak container. You can update an extension by simply replacing the old JAR file with the new one. ## Deploying the app with Docker Swarm Set the environment variables from the .env file during the shell session. ``` set -a && source .env && set +a ``` Set the secrets. ``` printf "SECRET_HERE" | docker secret create SECRET_NAME - ``` Deploy using the `-c` flag to specify one or multiple compose files. ``` docker stack deploy keycloak --detach=true -c compose.yaml ```