Skip to content

Nextcloud app health check improve  #45

@a3linux

Description

@a3linux

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions