From ed37be0c6041d71a7527aefb90cc8b5366e8bd8d Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sun, 23 Mar 2025 16:24:33 +0100 Subject: [PATCH] Add celery healthcheck & update existing healthcheck --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 44e9555..f29e719 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,6 +78,11 @@ services: --scheduler django -n worker1@%h -n worker2@%h + healthcheck: + test: celery --app newsreader status || exit 1 + interval: 10s + timeout: 10s + retries: 5 depends_on: rabbitmq: condition: service_started @@ -107,9 +112,9 @@ services: newsreader.wsgi:application healthcheck: test: /usr/bin/curl --fail http://django:8000 || exit 1 - interval: 30s + interval: 10s timeout: 10s - retries: 10 + retries: 5 depends_on: memcached: condition: service_started