项目作者: benleb

项目描述 :
🏥 AppDaemon healthcheck app. Can be used as a docker-compose healthcheck.
高级语言: Python
项目地址: git://github.com/benleb/ad-healthcheck.git
创建时间: 2019-07-31T15:41:42Z
项目社区:https://github.com/benleb/ad-healthcheck

开源协议:Apache License 2.0

下载


healthcheck

hacs_badge

Simple AppDaemon healthcheck app. Can be used as a docker-compose healthcheck.

Installation

Use HACS or download the healthcheck directory from inside the apps directory here to your local apps directory, then add the configuration to enable the healthcheck module.

App configuration

  1. healthcheck:
  2. module: healthcheck
  3. class: Healthcheck
  4. endpoint: healthcheck
key optional type default description
module False string The module name of the app.
class False string The name of the Class.
endpoint True string healthcheck The endpoint URL which will be registered.

docker-compose configuration

  1. healthcheck:
  2. test: ["CMD", "curl", "-X", "POST", "-H", "Content-Type: application/json", "-d", "{}", "https://<appdaemon URL>:5050/api/appdaemon/<endpoint>"]
  3. interval: 45s
  4. timeout: 3s
  5. retries: 5