-
-
Save little-pinecone/6b52ccd1fc0296b267e810d43fd01f3b to your computer and use it in GitHub Desktop.
Importing Keycloak realms from a directory
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
KEYCLOAK_VERSION=16.1.1 | |
KEYCLOAK_USER=keycloak | |
KEYCLOAK_PASSWORD=keycloak | |
KEYCLOAK_IMPORT_FOLDER=./keycloak/realms/import |
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
version: '3.3' | |
services: | |
keycloak: | |
image: jboss/keycloak:${KEYCLOAK_VERSION} | |
ports: | |
- "8024:8080" | |
environment: | |
- KEYCLOAK_USER=${KEYCLOAK_USER} | |
- KEYCLOAK_PASSWORD=${KEYCLOAK_PASSWORD} | |
volumes: | |
- ${KEYCLOAK_IMPORT_FOLDER}:/tmp/import | |
command: | |
- "-Dkeycloak.migration.action=import" | |
- "-Dkeycloak.migration.provider=dir" | |
- "-Dkeycloak.migration.dir=/tmp/import" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment