feat: cron

This commit is contained in:
2026-05-18 20:32:32 +02:00
parent 19d106a3ed
commit f5a3e79c8a
16 changed files with 547 additions and 9 deletions
+39
View File
@@ -96,6 +96,45 @@ services:
networks:
- internal
scheduler:
image: gitea.leonmorival.com/daily_meal/bemeal-api:latest
container_name: bemeal-scheduler
restart: unless-stopped
depends_on:
pgsql:
condition: service_healthy
redis:
condition: service_started
environment:
APP_LOCALE: "fr"
APP_ENV: "production"
APP_KEY: "${APP_KEY}"
APP_URL: "${APP_URL}"
APP_DEBUG: "${APP_DEBUG}"
FILESYSTEM_DISK: "public"
DB_CONNECTION: "pgsql"
DB_HOST: "pgsql"
DB_PORT: 5432
DB_DATABASE: "${DB_DATABASE:?DB_DATABASE is required}"
DB_USERNAME: "${DB_USERNAME:?DB_USERNAME is required}"
DB_PASSWORD: "${DB_PASSWORD:?DB_PASSWORD is required}"
GEMINI_API_KEY: "${GEMINI_API_KEY:?GEMINI_API_KEY is required}"
AI_MEAL_USER_NAME: "${AI_MEAL_USER_NAME:-Lolo AI}"
AI_MEAL_USER_EMAIL: "${AI_MEAL_USER_EMAIL:-loloai@maily.com}"
AI_MEAL_IMAGE_PATH: "${AI_MEAL_IMAGE_PATH:-meal-posts/ai-generated}"
AI_MEAL_IMAGE_QUALITY: "${AI_MEAL_IMAGE_QUALITY:-medium}"
AI_MEAL_TEXT_TIMEOUT: "${AI_MEAL_TEXT_TIMEOUT:-90}"
AI_MEAL_IMAGE_TIMEOUT: "${AI_MEAL_IMAGE_TIMEOUT:-120}"
REDIS_HOST: "redis"
REDIS_CLIENT: "predis"
QUEUE_CONNECTION: "redis"
volumes:
- storage-data:/var/www/html/storage/app
- storage-public-data:/var/www/html/storage/app/public
command: "php artisan schedule:work"
networks:
- internal
adminer:
image: adminer:latest
container_name: bemeal-adminer