-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 [#390] Add setup to run keycloak for tests
- Loading branch information
1 parent
ecacd3f
commit 1b186da
Showing
4 changed files
with
2,061 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
To export the realm settings, run this command in the keycloak container: | ||
|
||
```bash | ||
/opt/keycloak/bin/kc.sh export --file /tmp/realm_export.json --realm openarchiefbeheer-dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: '3.9' | ||
|
||
services: | ||
keycloak-db: | ||
image: postgres:14 | ||
restart: unless-stopped | ||
environment: | ||
POSTGRES_DB: keycloak | ||
POSTGRES_USER: keycloak | ||
POSTGRES_PASSWORD: keycloak | ||
networks: | ||
- keycloak-dev | ||
|
||
keycloak: | ||
depends_on: | ||
- keycloak-db | ||
container_name: keycloak_dev | ||
command: start-dev --import-realm | ||
environment: | ||
KEYCLOAK_ADMIN: admin | ||
KEYCLOAK_ADMIN_PASSWORD: admin | ||
KC_DB: postgres | ||
KC_DB_URL: jdbc:postgresql://keycloak-db/keycloak | ||
KC_DB_USERNAME: keycloak | ||
KC_DB_PASSWORD: keycloak | ||
KC_HOSTNAME: localhost | ||
image: quay.io/keycloak/keycloak:latest | ||
ports: | ||
- "28080:8080" | ||
restart: unless-stopped | ||
volumes: | ||
- ./fixtures:/opt/keycloak/data/import | ||
networks: | ||
- keycloak-dev | ||
|
||
networks: | ||
keycloak-dev: |
Oops, something went wrong.