diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 18bbaa2..e8b2e76 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -121,6 +121,12 @@ services: condition: service_healthy redis: condition: service_healthy + healthcheck: + test: ["CMD-SHELL", "celery -A config inspect ping --timeout 10 | grep -q 'pong'"] + interval: 30s + timeout: 15s + start_period: 40s + retries: 3 cap_drop: - ALL security_opt: @@ -146,6 +152,12 @@ services: - SECRET_KEY=${SECRET_KEY} depends_on: - celery-worker + healthcheck: + test: ["CMD-SHELL", "test -f /tmp/celerybeat-schedule"] + interval: 30s + timeout: 5s + start_period: 40s + retries: 3 cap_drop: - ALL security_opt: