Haxxnet / Compose-Examples

Various Docker Compose examples of selfhosted FOSS and proprietary projects.

Home Page:https://haxxnet.github.io/Compose-Examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Watchtower schedule follows golangs chron syntax

LucaMH opened this issue · comments

commented

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

commented

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