Add healthcheck

This commit is contained in:
Andras Schmelczer 2025-04-12 12:27:38 +01:00
parent 2f5d9b3ee2
commit 7d51230630
5 changed files with 34 additions and 3 deletions

View file

@ -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"]