1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

add healthchecks

This commit is contained in:
kevin 2022-03-23 19:25:08 +08:00
parent 5e5bff056e
commit 640445a77b
3 changed files with 37 additions and 0 deletions

View File

@ -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

24
healthchecks/README.md Normal file
View File

@ -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

View File

@ -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