Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds health check for keycloak and restarts keycloak setup on its fai… #506

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker-compose-infra-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ services:
DB_PASSWORD: password
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 5
ports:
- "9001:8080"

Expand Down Expand Up @@ -46,6 +51,7 @@ services:
command: "sh -c 'dockerize -wait http://keycloak:8080 -timeout 240s && java -jar /app.jar'"
depends_on:
- keycloak
restart: on-failure

cm-db-setup:
image: projecteka/cm-db-initializer
Expand Down