Add healthcheck
This commit is contained in:
parent
2f5d9b3ee2
commit
7d51230630
5 changed files with 34 additions and 3 deletions
|
|
@ -14,4 +14,9 @@ COPY src /src
|
|||
COPY config/ssh_config /etc/ssh/
|
||||
COPY config/exclude.conf /exclude.conf
|
||||
|
||||
|
||||
# Add healthcheck to verify backup completed within allowed time
|
||||
ENV MAX_BACKUP_AGE_SECONDS=86400
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=1h CMD /src/healthcheck.sh
|
||||
|
||||
ENTRYPOINT ["sh", "-c", "/src/schedule.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue