Skip to content

Commit

Permalink
Import keycloak data on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
gf-rog committed Mar 15, 2024
1 parent f88dc9f commit a179bbb
Show file tree
Hide file tree
Showing 5 changed files with 3,843 additions and 1 deletion.
9 changes: 8 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@ services:

keycloak:
image: quay.io/keycloak/keycloak:24.0
command: start-dev
command: start-dev --import-realm
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
ports:
- 3000:8080
volumes:
- ./keycloak/realms:/opt/keycloak/data/import

# Export data:
# /opt/keycloak/bin/kc.sh export \
# --dir /opt/keycloak/data/realms \
# --users same_file
Loading

0 comments on commit a179bbb

Please sign in to comment.