Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davidovs/19602595b3b19544c33adfeaca7a16a4 to your computer and use it in GitHub Desktop.
Save davidovs/19602595b3b19544c33adfeaca7a16a4 to your computer and use it in GitHub Desktop.
Docker-compose for Keycloak (embedded H2 database) with import previously exported realm.
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"
@davidovs
Copy link
Author

davidovs commented Jul 30, 2019

Examples for Oracle Database, PostgreSQL and MySQL:
https://github.com/jboss-dockerfiles/keycloak/tree/master/docker-compose-examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment