2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01: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

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