55
loading...
This website collects cookies to deliver better user experience
docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:14.0.0
super admin
account on docker run command itself using KEYCLOAK_USER
and KEYCLOAK_PASSWORD
parameters. By default Keycloak runs internally on docker container on port 8080
you can change the host port as you wish.Master
realm page.Realm
is like a project say X for which you can define the users, roles, authentication types, and obviously connect you clients/app which you are going to integrate (this may be any app spring-boot, angular, react, node.js, express.js, etc...).One Major thing to note is that whatever you create inside a realm is only accessible on that specific realm and only account which has access is the super admin
Another super important thing is that Keycloak uses in-memory database for storing the data used by docker container and realm settings, this is not recommended in production as it will not be stable and will delete the data after use. So I have mentioned how to overcome this at last section.
.yml
and then fire up the terminal to the location where the file is present and run the command docker compose up
. Now the new container will be created and you data will be stored to PostgreSQL DB with a persistence docker volume. (Don't forget to stop the existing docker container which you started earlier)