Docker cron jobs

I am using docker self hosted v5.12.27 and I am having trouble finding information regarding the cron jobs and the configuration of the cron.

I have seen where I might need to run the cron job using the docker exec command and create the cron on the host server and NOT in docker.

I ran htop on the host server and I am seeing /usr/local/bin/php artisan schedule:run appearing every minute which I assume is coming from the docker?

I am testing a new migration and I don’t want to accidentally send out recurring invoices etc so I want to know how the cron is set up when using docker.

A definitive answer would be good or point me to the documentation for docker setup. I have been using this GitHub - invoiceninja/dockerfiles: Docker files for Invoice Ninja but there is nothing about cron jobs.

On the non-docker installs you get a warning telling you the crons are not enabled. Is there anything like that for a docker install?

My question is how do I set up and run crons in a docker environment and also check if the cron is running or not? I want to know how to disable and enable the crons.

Also how do I change the times of the cron jobs:

php artisan schedule:list

  0   0    * * *  App\Jobs\Util\VersionCheck ............................................................................................... Next Due: 13 hours from now
  0   0    * * *  php artisan queue:prune-batches .......................................................................................... Next Due: 13 hours from now
  */5 *    * * *  queue-size-job ........................................................................................................... Next Due: 1 minute from now
  0   *    * * *  reminder-job ........................................................................................................... Next Due: 36 minutes from now
  0   *    * * *  quote-reminder-job ..................................................................................................... Next Due: 36 minutes from now
  0   *    * * *  recurring-invoice-job .................................................................................................. Next Due: 36 minutes from now
  10  *    * * *  task-scheduler-job ..................................................................................................... Next Due: 46 minutes from now
  0   *    * * *  invoice-tax-summary-26hour-coverage .................................................................................... Next Due: 36 minutes from now
  48  1    * * *  rotessa-transaction-report ............................................................................................... Next Due: 15 hours from now
  30  *    * * *  stale-invoice-job ....................................................................................................... Next Due: 6 minutes from now
  20  23   * * *  company-size-job ......................................................................................................... Next Due: 12 hours from now
  30  23   * * *  exchange-rate-job ........................................................................................................ Next Due: 13 hours from now
  1   *    * * *  subscription-job ....................................................................................................... Next Due: 37 minutes from now
  10  0    * * *  recurring-expense-job .................................................................................................... Next Due: 13 hours from now
  10  1    * * *  App\Jobs\Util\SchedulerCheck ............................................................................................. Next Due: 14 hours from now
  10  2    * * *  disk-cleanup-job ......................................................................................................... Next Due: 15 hours from now
  30  2    * * 0  system-maintenance-job ..................................................................................................... Next Due: 3 days from now
  10  5    * * *  quote-expired-job ........................................................................................................ Next Due: 18 hours from now
  20  6    * * *  auto-bill-job ............................................................................................................ Next Due: 19 hours from now
  0   7    * * *  invoice-overdue-job ...................................................................................................... Next Due: 20 hours from now
  0   1,13 * * *  bank-trans-sync-job ....................................................................................................... Next Due: 2 hours from now
  */5 *    * * *  Closure at: app/Console/Kernel.php:139 ................................................................................... Next Due: 1 minute from now
  36  */4  * * *  App\Jobs\EDocument\EInvoicePullDocs ......

For example

0   *    * * *  recurring-invoice-job 

to only run once a day?

Thanks

Hi,

I believe the crons are automatically configured in the docker app.

The cron is designed to be run once a minute, we don’t recommend changing it to a different schedule.

You can disable emails on Settings > Account Management to prevent emails from going out until you’re ready.

Thanks. That is what I thought so I will just have to be careful. :grinning_face:
It would be nice to have a bit of control. (I am a control freak)