Add celery healthcheck & update existing healthcheck

This commit is contained in:
Sonny Bakker 2025-03-23 16:24:33 +01:00
parent 161234defd
commit ed37be0c60

View file

@ -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