2023-08-14 03:34:39 +00:00
# Keycloak
2020-06-18 16:21:15 +00:00
2023-10-16 23:19:44 +00:00
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/ ).
2020-09-29 23:58:35 +00:00
2021-03-02 16:38:35 +00:00
2023-08-14 03:34:39 +00:00
## Deploying the app with Docker Swarm
2021-03-02 16:38:35 +00:00
2023-08-14 03:34:39 +00:00
Set the environment variables from the .env file during the shell session.
2021-03-02 16:38:35 +00:00
2023-08-14 03:34:39 +00:00
```
2023-08-14 07:24:41 +00:00
set -a & & source .env & & set +a
2023-08-14 03:34:39 +00:00
```
2021-03-02 16:38:35 +00:00
2023-08-14 07:24:41 +00:00
Set the secrets.
2021-10-30 15:26:43 +00:00
2023-08-14 03:34:39 +00:00
```
2023-08-14 07:24:41 +00:00
printf "SECRET_HERE" | docker secret create SECRET_NAME -
```
Deploy using the `-c` flag to specify one or multiple compose files.
```
docker stack deploy keycloak -c compose.yaml
2023-08-14 03:34:39 +00:00
```