1. Base dependency
a. docker mysqlb. dokcer keycloak-mysql
2. Install MySQL (note that it is best to use local data volumes for practical use)
docker run --name mysql -e MYSQL_DATABASE=keycloak -e MYSQL_USER=keycloak -e MYSQL_PASSWORD=password -e MYSQL_ROOT_PASSWORD=root -d mysql
Keycloak-mysql
docker run -d --name keycloak -p:8084:8080 --link mysql:mysql -e MYSQL_DATABASE=keycloak -e MYSQL_USERNAME=keycloak -e MYSQL_PASSWORD=password -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin jboss/keycloak-mysql
3. Configuration because the mode is used HTTPS so need to log on the system to modify the login database to modify
docker exec -it mysql /bin/shmysql -uroot -proot use keycloakupdate REALM set ssl_required=‘NONE‘ where id = ‘master‘docker stop keycloak && docker start keycloak or (docker restart keycloak)
4. Interface Login interface Operation interface 5. Spring boot using reference git project examplein the spring boot
https://github.com/keycloak/keycloak-quickstarts
Keycloak && Docker &&spring Boot