-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Improve the health check of Nextcloudapp(service), then apply the restart: on-failure
Two options,
healthcheck:
test: curl -sSf 'http://localhost/status.php' | grep '"installed":true' | grep '"maintenance":false' | grep '"needsDbUpgrade":false' || exit 1
interval: 10s
timeout: 5s
retries: 10
or
test: "SCRIPT_NAME=/var/www/html/status.php SCRIPT_FILENAME=/var/www/html/status.php REQUEST_METHOD=GET /usr/bin/cgi-fcgi -connect /var/run/php-fpm/php-fpm.sock / | grep '\"installed\":true' | grep '\"maintenance\":false' | grep '\"needsDbUpgrade\":false' || exit 1"
Reference,
nextcloud/docker#676
Metadata
Metadata
Assignees
Labels
No labels