Keycloak && Docker &&spring Boot

Source: Internet
Author: User
Tags docker run

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.