From 640445a77b722b03e7b3ad7b710d9ae76487ec03 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 23 Mar 2022 19:25:08 +0800 Subject: [PATCH] add healthchecks --- README.md | 1 + healthchecks/README.md | 24 ++++++++++++++++++++++++ healthchecks/docker-compose.yml | 12 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 healthchecks/README.md create mode 100644 healthchecks/docker-compose.yml diff --git a/README.md b/README.md index aec3fa5..71d119e 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,7 @@ A collection of delicious docker recipes. - [x] grafana/grafana - [x] hasura/graphql-engine - [x] haproxy +- [x] healthchecks/healthchecks - [x] homeassistant/home-assistant - [x] h2non/imaginary - [x] jellyfin/jellyfin diff --git a/healthchecks/README.md b/healthchecks/README.md new file mode 100644 index 0000000..67220e0 --- /dev/null +++ b/healthchecks/README.md @@ -0,0 +1,24 @@ +healthchecks +============ + +[Healthchecks][1] 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. + +## up and running + +```bash +$ mkdir -m 777 data +$ docker-compose up -d +$ docker-compose exec healthchecks bash +>>> ./manage.py migrate +>>> ./manage.py createsuperuser + Email address: admin@easypi.duckdns.org + Password: ****** + Password (again): ****** + Superuser created successfully. +>>> exit +$ curl http://127.0.0.1:8000 +``` + +[1]: https://github.com/healthchecks/healthchecks diff --git a/healthchecks/docker-compose.yml b/healthchecks/docker-compose.yml new file mode 100644 index 0000000..e688097 --- /dev/null +++ b/healthchecks/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.8" +services: + healthchecks: + image: healthchecks/healthchecks + ports: + - "8000:8000" + volumes: + - ./data:/data + environment: + - DEBUG=False + - DB_NAME=/data/hc.db + restart: unless-stopped