From 24597be1967a1cd376041f14be88706059a48d70 Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Mon, 2 Dec 2024 13:34:01 -0400 Subject: [PATCH] Update start_api_quarkus.yml --- tasks/start_api_quarkus.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/start_api_quarkus.yml b/tasks/start_api_quarkus.yml index de9b6b8..b048869 100644 --- a/tasks/start_api_quarkus.yml +++ b/tasks/start_api_quarkus.yml @@ -1,11 +1,10 @@ --- - - name: Pull Java Run Image docker_image: name: "{{ JAVA_SOFTWARE_RUN_IMAGE }}" source: pull -- name: Run API +- name: Run API with Health Check docker_container: name: "{{ API_SERVER_NAME }}" image: "{{ JAVA_SOFTWARE_RUN_IMAGE }}" @@ -21,3 +20,9 @@ CACHE_HOST: "{{ INFINISPAN_SERVER_NAME }}" NEO4J_HOST: "{{ NEO_SERVER_NAME }}" ES_HOST: "{{ ES_SERVER_NAME }}" + healthcheck: + test: ["CMD", "curl", "-f", "https://www.alliancegenome.org/api/search_autocomplete?q=p"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s