Skip to content

Instantly share code, notes, and snippets.

@deangrant
Created August 12, 2022 10:34
Show Gist options
  • Save deangrant/5d2a27c161d12b72d94339d590ae42eb to your computer and use it in GitHub Desktop.
Save deangrant/5d2a27c161d12b72d94339d590ae42eb to your computer and use it in GitHub Desktop.
Configure a check that’s run to determine whether or not a Keycloak containers is healthy
# Healthcheck for strict HTTPS
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8443/health"]
interval: 10s
timeout: 5s
retries: 5
# Healthcheck for HTTP enabled
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment