Deploy Keycloak behind reverse proxy

SebinnSebastian
Feb 20, 2023

--

Keycloak will be deployed using docker compose, so If you didn’t install docker, please do and read further. Please follow the official documentation.

  1. Copy the docker compose file from this link,

2. Create a file called envs, Copy the content from here.

3. Generate a self signed certificate,

openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \ -keyout certs/key.pem -out certs/cert.pem -subj “/CN=yourdomain.name” \ -addext “subjectAltName=DNS:*.yourdomain.name”

4. Create a script named start.sh,

docker compose up

Your keycloak will be up and running

Don’t forget add the configuration in reverse-proxy

Assuming it’s nginx,

proxy_pass https://keycloak:8443;

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SebinnSebastian
SebinnSebastian

Written by SebinnSebastian

DevOps Engineer | Redhat Certified System Administrator | K8s Administrator | AWS, Docker, Terraform, GCP

No responses yet

Write a response