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

OZ-455: Update OpenMRS health check to use /health/started endpoint #76

Merged
merged 1 commit into from
Feb 5, 2024
Merged
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
14 changes: 6 additions & 8 deletions docker-compose-openmrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ services:
OMRS_CONFIG_CONNECTION_PASSWORD: ${OPENMRS_DB_PASSWORD:-openmrs}
HOST_URL: https://${O3_HOSTNAME}
healthcheck:
test:
- CMD
- curl
- "-f"
- "http://localhost:8080/openmrs/"
test: [ "CMD", "curl", "-f", "http://localhost:8080/openmrs/health/started" ]
interval: 10s
timeout: 5s
image: openmrs/openmrs-reference-application-3-backend:3.0.0-beta.16
retries: 48
start_period: 120s
image: openmrs/openmrs-reference-application-3-backend:${O3_DOCKER_IMAGE_TAG:-nightly}
labels:
traefik.enable: "true"
traefik.http.routers.openmrs.rule: "Host(`${O3_HOSTNAME}`) && PathPrefix(`/openmrs`)"
Expand Down Expand Up @@ -55,7 +54,7 @@ services:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
timeout: 5s
image: openmrs/openmrs-reference-application-3-frontend:3.0.0-beta.16
image: openmrs/openmrs-reference-application-3-frontend:${O3_DOCKER_IMAGE_TAG:-nightly}
labels:
traefik.enable: "true"
traefik.http.routers.frontend.rule: "Host(`${O3_HOSTNAME}`) && PathPrefix(`/openmrs/spa/`)"
Expand Down Expand Up @@ -104,4 +103,3 @@ volumes:
openmrs-data: ~
openmrs-modules: ~
openmrs-owas: ~