Restart at exact time in Docker Compose #370
Mephisto090
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, here is a small improvement idea that allows you to always fire the script at the same time in Docker Compose. To do this, simply adjust the desired time. Please remember that the time is UTC and may need to be converted to the current time.
Simply change the desired time twice to
tomorrow 17:55
in the command line. (Example:tomorrow 19:25
)English text:
command: bash -c "node epic-games; node prime-gaming; node gog; node aliexpress; echo sleeping $(expr $(date -d \"tomorrow 17:55\" +%s) - $(date -d \"now\" +%s)) secounds - tomorrow 17:55; sleep $(expr $(date -d \"tomorrow 17:55\" +%s) - $(date -d \"now\" +%s));"
Example: In Germany with summer time,
tomorrow 17:55
would be 19:55 local timeHallo, hier eine kleine Verbesserungsidee womit man im Docker Compose das Skript immer zur gleichen Zeit feuern kann. Dazu einfach die gewünschte Zeit anpassen. Bitte bedenkt das die Zeit UTC ist und ggf. in die aktuelle Zeit umgerechnet werden muss.
Einfach zwei mal die gewünschte Zeit ändern bei
tomorrow 17:55
in der Command Zeile. (Beispiel:tomorrow 19:25
)German Text:
command: bash -c "node epic-games; node prime-gaming; node gog; node aliexpress; echo sleeping $(expr $(date -d \"tomorrow 17:55\" +%s) - $(date -d \"now\" +%s)) sekunden - morgen 17:55 Uhr; sleep $(expr $(date -d \"tomorrow 17:55\" +%s) - $(date -d \"now\" +%s));"
Beispiel: In Deutschland mit Sommerzeit wäre
tomorrow 17:55
19:55 Uhr ortszeitBeta Was this translation helpful? Give feedback.
All reactions