Open col-panic opened 1 month ago
@col-panic Please take a look at the following variant of nextcloud.yml extension. With some time intervals, the healthcheck.php file checks the availability of DB (by getting dummy data from a current connection) and primary S3 storage (by writing a test file to storage, checking availability, and deleting it).
A docker service should perform some kind of healthcheck on itself and perform a specific action, like restarting the service or reporting the problem.
Nextcloud in our case is heavily dependent on
to assert this, we should extend
nextcloud.yml
or the depending docker image with respective tests.A general topic on database healthcheck can be found here https://github.com/docker-library/docs/issues/2391, I could not yet find any information on s3 resp. checks.
As for S3 - we could both solve it for this project, and open up an issue for the general Nextcloud docker image, as it might be interesting for other users too. https://github.com/nextcloud/server/wiki/How-to-test-S3-primary-storage