From 7f1980a7ed438057dc464088a2f8b6b5a3a8674a Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:48:38 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Add=20healthcheck=20to=20?= =?UTF-8?q?Nautobot=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- environments/docker-compose.local.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/environments/docker-compose.local.yml b/environments/docker-compose.local.yml index 111cec193..05bbfca77 100644 --- a/environments/docker-compose.local.yml +++ b/environments/docker-compose.local.yml @@ -8,6 +8,12 @@ services: volumes: - "../config/nautobot_config.py:/opt/nautobot/nautobot_config.py" - "../jobs:/opt/nautobot/jobs" + healthcheck: + interval: "30s" + timeout: "10s" + start_period: "60s" + retries: 3 + test: ["CMD", "true"] # Due to layering, disable: true won't work. Instead, change the test celery_worker: volumes: - "../config/nautobot_config.py:/opt/nautobot/nautobot_config.py"