Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions blueprints/healthchecks/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: "3.8"

services:
healthchecks:
image: healthchecks/healthchecks:v4.4
restart: unless-stopped
depends_on:
db:
condition: service_healthy
expose:
- 8000
environment:
DEBUG: ${DEBUG}
DB: postgres
DB_HOST: db
DB_PORT: "5432"
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
SECRET_KEY: ${SECRET_KEY}
SITE_ROOT: ${SITE_ROOT}
SITE_NAME: ${SITE_NAME}
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
PING_ENDPOINT: ${PING_ENDPOINT}
REGISTRATION_OPEN: ${REGISTRATION_OPEN}
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL}
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_PORT: ${EMAIL_PORT}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
EMAIL_USE_TLS: ${EMAIL_USE_TLS}

db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- healthchecks-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5

volumes:
healthchecks-db:
6 changes: 6 additions & 0 deletions blueprints/healthchecks/healthchecks.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions blueprints/healthchecks/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "healthchecks",
"name": "Healthchecks",
"version": "v4.4",
"description": "Healthchecks is an open-source cron job and background task monitoring service that alerts you when your scheduled jobs fail to check in. Registration is closed by default: create the first admin by running ./manage.py createsuperuser in the healthchecks container terminal.",
"logo": "healthchecks.svg",
"links": {
"github": "https://github.com/healthchecks/healthchecks",
"website": "https://healthchecks.io/",
"docs": "https://healthchecks.io/docs/self_hosted_docker/"
},
"tags": ["monitoring", "cron", "alerting"]
}
29 changes: 29 additions & 0 deletions blueprints/healthchecks/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[variables]
main_domain = "${domain}"
db_password = "${password:32}"
secret_key = "${password:64}"

[config]
env = [
"DEBUG=False",
"DB_NAME=healthchecks",
"DB_USER=healthchecks",
"DB_PASSWORD=${db_password}",
"SECRET_KEY=${secret_key}",
"SITE_ROOT=https://${main_domain}",
"SITE_NAME=Healthchecks",
"ALLOWED_HOSTS=${main_domain}",
"PING_ENDPOINT=https://${main_domain}/ping/",
"REGISTRATION_OPEN=False",
"DEFAULT_FROM_EMAIL=healthchecks@${main_domain}",
"EMAIL_HOST=",
"EMAIL_PORT=587",
"EMAIL_HOST_USER=",
"EMAIL_HOST_PASSWORD=",
"EMAIL_USE_TLS=True",
]

[[config.domains]]
serviceName = "healthchecks"
port = 8000
host = "${main_domain}"
Loading