in This Tutorial you will learn " How To Deploy Run Keycloak Server in a Docker Container
Keycloak is an open source identity and access management solution.
Hoempage - https://www.keycloak.org/
Docker is a software platform that allows you to build, test, and deploy applications quickly.
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I
apt update ; apt -y install docker.io docker-compose ca-certificates curl gnupg-agent software-properties-common -y
docker --version ; docker-compose --version
docker pull mariadb
docker pull jboss/keycloak
docker network create keycloak-network
mkdir /home/ubuntu/keycloak_data
docker run -d \
--name mariadb \
--net keycloak-network \
-v /home/ubuntu/keycloak_data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=Root@1234 \
-e MYSQL_DATABASE=keycloak \
-e MYSQL_USER=keycloak \
-e MYSQL_PASSWORD=Keycloak@1234 \
mariadb
docker run -d \
--name keycloak \
--net keycloak-network \
-p 8080:8080 \
-e KEYCLOAK_USER=admin \
-e KEYCLOAK_PASSWORD=Admin@1234 \
-e DB_ADDR=mariadb \
-e DB_USER=keycloak \
-e DB_PASSWORD=Keycloak@1234 \
jboss/keycloak
docker ps
http://192.168.1.80:8080/
_________________________________________________________________________________________
Monday, February 28, 2022
Deploy Run Keycloak Server in Docker Container
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment