From d20f1e6a3a1a082687041ad27ac2fe2d0ce9d14e Mon Sep 17 00:00:00 2001 From: Amjed Ali <86785660+amjed-ali-k@users.noreply.github.com> Date: Sun, 23 Jan 2022 20:24:06 +0530 Subject: Add Healthchecks (#611) * Add Apprise * :lipstick: Formatted * :sparkles: Add health checks * :white_check_mark: * :bug: Added Default value --- public/v4/apps/healthchecks.yml | 56 +++++++++++++++++++++++++++++++++++++++ public/v4/logos/healthchecks.png | Bin 0 -> 3335 bytes 2 files changed, 56 insertions(+) create mode 100644 public/v4/apps/healthchecks.yml create mode 100644 public/v4/logos/healthchecks.png diff --git a/public/v4/apps/healthchecks.yml b/public/v4/apps/healthchecks.yml new file mode 100644 index 0000000..3b8187a --- /dev/null +++ b/public/v4/apps/healthchecks.yml @@ -0,0 +1,56 @@ +captainVersion: 4 +services: + # HealthChecks + $$cap_appname: + image: healthchecks/healthchecks:$$cap_hc_version + restart: always + environment: + DB: postgres + DB_HOST: srv-captain--$$cap_appname-db + DB_NAME: hc + DB_PASSWORD: $$cap_postgres_password + DB_PORT: 5432 + DB_SSLMODE: prefer + DB_TARGET_SESSION_ATTRS: read-write + DB_USER: postgres + DEBUG: False + SECRET_KEY: $$cap_gen_random_hex(64) + SITE_ROOT: http://0.0.0.0:8000 + caproverExtra: + containerHttpPort: '8000' + # Postgres + $$cap_appname-db: + image: postgres:12 + volumes: + - $$cap_appname-db-data:/var/lib/postgresql/data + restart: always + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: $$cap_postgres_password + POSTGRES_DB: hc + caproverExtra: + notExposeAsWebApp: 'true' +caproverOneClickApp: + variables: + - id: $$cap_hc_version + label: hc Manifest digest + defaultValue: 'v1.25.0' + description: Find on https://hub.docker.com/r/healthchecks/healthchecks/tags + - id: $$cap__postgres_password + label: Postgres Password + description: Password must be at least 12 characters. Please use a random string. + defaultValue: $$cap_gen_random_hex(16) + validRegex: /^[^\@]{12,}$/ + instructions: + start: |- + Healthchecks is a cron job monitoring service. It listens for HTTP requests and email messages ("pings") from your cron jobs and scheduled tasks ("checks"). When a ping does not arrive on time, Healthchecks sends out alerts. + Github: https://github.com/healthchecks/healthchecks + + end: |- + Aaaand you're done! 😄 + Your service is available at http://$$cap_appname.$$cap_root_domain + More environment variables can be found at https://github.com/healthchecks/healthchecks/blob/master/docker/.env + displayName: 'HealthChecks' + isOfficial: true + description: Healthchecks is a cron job monitoring service. + documentation: https://github.com/healthchecks/healthchecks diff --git a/public/v4/logos/healthchecks.png b/public/v4/logos/healthchecks.png new file mode 100644 index 0000000..0441eff Binary files /dev/null and b/public/v4/logos/healthchecks.png differ -- cgit v1.2.3