Created
July 29, 2019 17:58
-
-
Save davidovs/19602595b3b19544c33adfeaca7a16a4 to your computer and use it in GitHub Desktop.
Docker-compose for Keycloak (embedded H2 database) with import previously exported realm.
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' | |
networks: | |
default: | |
services: | |
keycloak: | |
image: jboss/keycloak | |
restart: always | |
environment: | |
KEYCLOAK_VERSION: 6.0.1 | |
KEYCLOAK_USER: admin | |
KEYCLOAK_PASSWORD: admin | |
KEYCLOAK_IMPORT: /tmp/realm-export.json | |
volumes: | |
- ./keycloak/realm-export.json:/tmp/realm-export.json | |
ports: | |
- "8180:8080" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Examples for Oracle Database, PostgreSQL and MySQL:
https://github.com/jboss-dockerfiles/keycloak/tree/master/docker-compose-examples