diff --git a/docker-compose.yml b/docker-compose.yml index f6ff22f..d3b6ae3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,7 +127,7 @@ services: condition: service_healthy command: celery-worker healthcheck: - test: ["CMD-SHELL", "pgrep -f 'celery.*worker' || exit 1"] + test: ["CMD-SHELL", "ps aux | grep -v grep | grep 'celery.*worker' || exit 1"] interval: 30s timeout: 10s retries: 3 @@ -162,7 +162,7 @@ services: condition: service_healthy command: celery-beat healthcheck: - test: ["CMD-SHELL", "pgrep -f 'celery.*beat' || exit 1"] + test: ["CMD-SHELL", "ps aux | grep -v grep | grep 'celery.*beat' || exit 1"] interval: 30s timeout: 10s retries: 3