feat(deploy): add celery beat service

This commit is contained in:
2026-04-30 20:23:22 +03:30
parent 4d82094c0b
commit 40f89fc9aa

View File

@@ -68,6 +68,24 @@ services:
backend:
condition: service_started
celery-beat:
build:
context: ./backend/qlockify-backend-deployment
dockerfile: ../Dockerfile
restart: always
env_file:
- ./backend/qlockify-backend-deployment/.env
volumes:
- celery_beat_data:/app/run
command: celery -A config beat -l INFO --schedule /app/run/celerybeat-schedule
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
backend:
condition: service_started
frontend:
build:
context: ./frontend/qlockify-frontend-deployment
@@ -98,3 +116,4 @@ volumes:
postgres_data:
static_data:
media_data:
celery_beat_data: