Skip to content

Commit

Permalink
build: 🏗️ Update service check for celery/beats to ensure service is …
Browse files Browse the repository at this point in the history
…healthy before starting.
  • Loading branch information
jdrew82 committed Jul 1, 2024
1 parent e850c09 commit 31788cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions environments/docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 31788cc

Please sign in to comment.