This commit is contained in:
2026-04-29 03:47:48 +03:30
parent 27784ee8b9
commit 8139a49756
11 changed files with 533 additions and 197 deletions
+28
View File
@@ -102,6 +102,34 @@ services:
networks:
- crop_network
celery-beat:
container_name: backend-celery-beat
build: .
command: ["celery", "-A", "config", "beat", "-l", "info"]
env_file:
- .env
environment:
DOCKER_VERSION: ${DOCKER_VERSION:-production}
ALLOWED_HOSTS: ${ALLOWED_HOSTS:-localhost,127.0.0.1,0.0.0.0,web,backend-web}
AI_SERVICE_BASE_URL: ${AI_SERVICE_BASE_URL:-http://ai-web:8000}
AI_SERVICE_HOST_HEADER: ${AI_SERVICE_HOST_HEADER:-localhost}
DB_HOST: croplogic-db
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://backend-redis:6379/0}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND:-redis://backend-redis:6379/0}
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP: "true"
SKIP_MIGRATE: "1"
ACCESS_CONTROL_AUTHZ_BASE_URL: http://croplogic-accsess-opa:8181
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
accsess:
condition: service_started
restart: unless-stopped
networks:
- crop_network
networks:
crop_network:
external: true