fradelg / docker-mysql-cron-backup

Docker image to backup all your databases periodically
Apache License 2.0
290 stars 111 forks source link

[Feature] Add basic healthcheck #94

Closed g-nardiello closed 1 year ago

g-nardiello commented 1 year ago

Healthcheck is provided as a basic init control.

How it works

Container is Healthly after the database init phase, that is after INIT_BACKUP or INIT_RESTORE_LATEST happends without check if there is an error, Starting otherwise. Not other checks are actually provided.

Future improvements

It could be improved by checking if backup and restore logic is currently working, making it more fault tollerant, but it is not needed.

fradelg commented 1 year ago

Hi @g-nardiello, can you fix the remaining typos too?

g-nardiello commented 1 year ago

Hi, I corrected the HEALTHY.status name. Have you found other typos? Thanks

fradelg commented 1 year ago

No, thanks for the fix!