From 31788cc38d899f2666802e0d31e68ab74f99ee6d Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Mon, 1 Jul 2024 08:44:14 -0500 Subject: [PATCH] =?UTF-8?q?build:=20=F0=9F=8F=97=EF=B8=8F=20Update=20servi?= =?UTF-8?q?ce=20check=20for=20celery/beats=20to=20ensure=20service=20is=20?= =?UTF-8?q?healthy=20before=20starting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- environments/docker-compose.base.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/environments/docker-compose.base.yml b/environments/docker-compose.base.yml index 1f9b95c79..26a0ca4d1 100644 --- a/environments/docker-compose.base.yml +++ b/environments/docker-compose.base.yml @@ -29,7 +29,8 @@ services: - "-c" # this is to evaluate the $NAUTOBOT_LOG_LEVEL from the env - "nautobot-server celery worker -l $$NAUTOBOT_LOG_LEVEL --events" ## $$ because of docker-compose depends_on: - - "nautobot" + nautobot: + condition: "service_healthy" healthcheck: interval: "30s" timeout: "10s" @@ -49,7 +50,8 @@ services: - "-c" # this is to evaluate the $NAUTOBOT_LOG_LEVEL from the env - "nautobot-server celery beat -l $$NAUTOBOT_LOG_LEVEL" ## $$ because of docker-compose depends_on: - - "nautobot" + nautobot: + condition: "service_healthy" healthcheck: disable: true <<: *nautobot-base