fix(docker): add proper healthchecks for Celery worker, beat, and flower
Some checks failed
CI / ruff (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / architecture (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / audit (push) Has been cancelled
CI / docs (push) Has been cancelled

This commit is contained in:
2026-02-11 23:10:29 +01:00
parent b9a998fb43
commit 6af9458ad4

View File

@@ -73,6 +73,11 @@ services:
volumes: volumes:
- ./logs:/app/logs - ./logs:/app/logs
- ./exports:/app/exports - ./exports:/app/exports
healthcheck:
test: ["CMD-SHELL", "celery -A app.core.celery_config inspect ping --timeout 10 || exit 1"]
interval: 30s
timeout: 15s
retries: 3
# Celery beat for scheduled tasks # Celery beat for scheduled tasks
celery-beat: celery-beat:
@@ -86,6 +91,8 @@ services:
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy
healthcheck:
disable: true
# Flower monitoring dashboard # Flower monitoring dashboard
flower: flower:
@@ -102,6 +109,11 @@ services:
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5555/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
volumes: volumes:
postgres_data: postgres_data: