Haxxnet/Compose-Examples

Watchtower schedule follows golangs chron syntax

LucaMH opened this issue · 1 comments

Hi,

first of all, cool repo!

regarding this line:

- WATCHTOWER_SCHEDULE=0 0 6 * * * # see https://crontab.guru/

Watchtower is written in go which uses 6 fields instead of 5. (stepped into this and lost a good hour when i first used watchtower 😎....)
https://crontab.guru/ is not supporting that.
See https://containrrr.dev/watchtower/arguments/#scheduling or https://pkg.go.dev/github.com/robfig/cron@v1.2.0#hdr-CRON_Expression_Format

Thanks for pointing out!

Gladly, the compose file already defined the correct go cron syntax. Therefore, I just changed the comment with the reference to crontab.guru. Sorry for the inconvenience!

See fix 6ef65f6 and c583c0f