Files
AdventureLog/backend/cron/adventurelog
Sean Morley 7f6bf1390a Add Docker and environment configuration files for AdventureLog
- Introduced .dockerignore to exclude unnecessary files from Docker context.
- Added .env.aio.example for minimal configuration of the AdventureLog All-in-One setup.
- Updated .env.example to include optional SITE_URL and GUNICORN_WORKERS settings.
- Enhanced deploy.sh script for improved deployment flexibility and backup options.
- Updated docker-compose files to use PostGIS 16-3.5 and added health checks for services.
- Created docker-compose.aio.yml for All-in-One deployment configuration.
- Improved health checks and service dependencies in docker-compose.dev.yml and docker-compose.yml.
- Added GitHub workflows for building and pushing Docker images, including smoke tests for AIO setup.
2026-06-06 18:54:25 -04:00

17 lines
773 B
Plaintext

# AdventureLog scheduled management commands.
# Schedules are in UTC (CRON_TZ). Job output appears in Docker logs and
# /var/log/adventurelog/<job-name>.log inside the container.
# Add new jobs on their own line:
# MIN HOUR DOM MON DOW root /code/scripts/run-cron-job.sh <log-name> <command> [args...]
#
# Examples:
# 0 4 * * 0 root /code/scripts/run-cron-job.sh image_cleanup image_cleanup --dry-run
# 30 2 * * * root /code/scripts/run-cron-job.sh sync_visited_regions sync_visited_regions --batch-size 50
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CRON_TZ=UTC
# Sync visited regions and cities from user locations (nightly midnight UTC)
0 0 * * * root /code/scripts/run-cron-job.sh sync_visited_regions sync_visited_regions