Skip to content

Instantly share code, notes, and snippets.

View Angi2412's full-sized avatar

Angelina Mohr Angi2412

View GitHub Profile
@sarath-soman
sarath-soman / docker-compose.yml
Last active May 2, 2025 15:44
Keycloak docker compose with health checks
# Keycloak containers doesn't come with curl or wget in it, this forces the users to use alternative mechanisms to realise
# health check for the keycloak standard containers. This example leverages the capability of modern Java to dynamically
# compile a *.java source file and execute it on the fly using the `java` command. The HealthCheck class uses
# java.net.URL to open a connection to the `health/live` endpoint of keycloak and exits the process with a non-zero status
# if the http status is not `Ok`
version: '3'
services:
############################
# Keycloak service
############################