Skip to content

Instantly share code, notes, and snippets.

View TheTimeWalker's full-sized avatar

Tony Stipanic TheTimeWalker

  • @Vardex-Suisse
  • 15:03 (UTC +02:00)
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
############################
import { useState, useRef } from 'react';
import styles from '../styles/DebouncedInputFetchDemo.module.css';
const lookupOrder = async (orderNumber, fetchOptions = {}) => {
const response = await fetch(`/api/demo?orderNo=${orderNumber}&delay=3`, {
method: 'GET',
...fetchOptions
});
return response.json();