{
  "manifest_version": "1.0.0",
  "template": {
    "id": "21090486-8ebe-4f5e-88be-4d25a1c38781",
    "slug": "healthchecks-monitoring",
    "name": "Healthchecks",
    "description": "Monitor cron jobs, backups and scheduled tasks; alert when a ping is late",
    "url": "https://railway.com/deploy/healthchecks-monitoring",
    "upstream": {
      "image": "healthchecks/healthchecks:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "healthchecks",
      "source": {
        "image": "healthchecks/healthchecks:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DB",
      "service": "healthchecks",
      "description": "Database backend selector",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PORT",
      "service": "healthchecks",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DEBUG",
      "service": "healthchecks",
      "description": "Disable Django debug mode",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "RP_ID",
      "service": "healthchecks",
      "description": "WebAuthn relying party domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "healthchecks",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_NAME",
      "service": "healthchecks",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "healthchecks",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USER",
      "service": "healthchecks",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "healthchecks",
      "description": "Bucket for captured ping bodies",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "healthchecks",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SITE_NAME",
      "service": "healthchecks",
      "description": "Branding shown in UI and emails",
      "secret": false,
      "strategy": "default",
      "default": "Healthchecks"
    },
    {
      "key": "SITE_ROOT",
      "service": "healthchecks",
      "description": "Public base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SECRET_KEY",
      "service": "healthchecks",
      "description": "Signs sessions and login links",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_PASSWORD",
      "service": "healthchecks",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "healthchecks",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOWED_HOSTS",
      "service": "healthchecks",
      "description": "Accept any Host header",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "healthchecks",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "healthchecks",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APPRISE_ENABLED",
      "service": "healthchecks",
      "description": "Keep Apprise transport disabled",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "DB_CONN_MAX_AGE",
      "service": "healthchecks",
      "description": "Persistent database connection lifetime",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PING_BODY_LIMIT",
      "service": "healthchecks",
      "description": "Max bytes stored per ping body",
      "secret": false,
      "strategy": "default",
      "default": "100000"
    },
    {
      "key": "SUPERUSER_EMAIL",
      "service": "healthchecks",
      "description": "First administrator login email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "REGISTRATION_OPEN",
      "service": "healthchecks",
      "description": "Close public sign-up",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "SUPERUSER_PASSWORD",
      "service": "healthchecks",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURE_PROXY_SSL_HEADER",
      "service": "healthchecks",
      "description": "Trust edge TLS termination",
      "secret": false,
      "strategy": "default",
      "default": "HTTP_X_FORWARDED_PROTO,https"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "healthchecks-monitoring"
      }
    },
    "cli": "railway deploy --template healthchecks-monitoring",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "21090486-8ebe-4f5e-88be-4d25a1c38781",
            "serializedConfig": {
              "buckets": {
                "16f3f99d-1943-42ee-b3df-fae9f83ed250": {
                  "name": "pings"
                }
              },
              "services": {
                "7db7647c-e1a5-4e9d-99ad-30da9de2e45b": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "7db7647c-e1a5-4e9d-99ad-30da9de2e45b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "bf89477d-0a95-4545-8fe3-e539ef603ade": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/healthchecks.svg",
                  "name": "healthchecks",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /tmp/hcconf; printf \"%s\\n\" \"from hc.settings import *\" \"SESSION_COOKIE_SECURE = True\" \"CSRF_COOKIE_SECURE = True\" \"SECURE_HSTS_SECONDS = 31536000\" > /tmp/hcconf/railway_settings.py; export PYTHONPATH=\"/tmp/hcconf:$PYTHONPATH\" DJANGO_SETTINGS_MODULE=railway_settings; if [ -n \"$S3_ENDPOINT\" ]; then case \"$S3_ENDPOINT\" in https://*) S3_ENDPOINT=${S3_ENDPOINT#https://}; S3_SECURE=True;; http://*) S3_ENDPOINT=${S3_ENDPOINT#http://}; S3_SECURE=False;; esac; export S3_ENDPOINT S3_SECURE; echo \"bootstrap: s3 endpoint=$S3_ENDPOINT secure=$S3_SECURE\"; fi; for i in 1 2 3 4 5 6 7 8 9 10 11 12; do ./manage.py migrate --noinput && break; echo \"bootstrap: database not ready, retry $i\"; sleep 5; done; if [ -n \"$SUPERUSER_EMAIL\" ] && [ -n \"$SUPERUSER_PASSWORD\" ]; then ./manage.py createsuperuser --email \"$SUPERUSER_EMAIL\" --password \"$SUPERUSER_PASSWORD\" || echo \"bootstrap: superuser already present, skipping\"; fi; ./manage.py shell -c \"from django.conf import settings; from hc.api.models import Channel; qs = Channel.objects.filter(kind=\\\"email\\\"); n = 0 if settings.EMAIL_HOST else qs.count(); n and qs.delete(); print(f\\\"bootstrap: removed {n} email notification channel(s); set EMAIL_HOST to enable email alerts\\\")\"; exec uwsgi /opt/healthchecks/docker/uwsgi.ini'",
                    "healthcheckPath": "/api/v3/status/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "healthchecks/healthchecks:latest"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Database backend selector",
                      "defaultValue": "postgres"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8000"
                    },
                    "DEBUG": {
                      "isOptional": false,
                      "description": "Disable Django debug mode",
                      "defaultValue": "False"
                    },
                    "RP_ID": {
                      "isOptional": false,
                      "description": "WebAuthn relying party domain",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for captured ping bodies",
                      "defaultValue": "${{pings.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{pings.REGION}}"
                    },
                    "SITE_NAME": {
                      "isOptional": false,
                      "description": "Branding shown in UI and emails",
                      "defaultValue": "Healthchecks"
                    },
                    "SITE_ROOT": {
                      "isOptional": false,
                      "description": "Public base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions and login links",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{pings.ENDPOINT}}"
                    },
                    "ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Accept any Host header",
                      "defaultValue": "*"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{pings.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{pings.SECRET_ACCESS_KEY}}"
                    },
                    "APPRISE_ENABLED": {
                      "isOptional": false,
                      "description": "Keep Apprise transport disabled",
                      "defaultValue": "False"
                    },
                    "DB_CONN_MAX_AGE": {
                      "isOptional": false,
                      "description": "Persistent database connection lifetime",
                      "defaultValue": "60"
                    },
                    "PING_BODY_LIMIT": {
                      "isOptional": false,
                      "description": "Max bytes stored per ping body",
                      "defaultValue": "100000"
                    },
                    "SUPERUSER_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator login email",
                      "defaultValue": "admin@example.com"
                    },
                    "REGISTRATION_OPEN": {
                      "isOptional": false,
                      "description": "Close public sign-up",
                      "defaultValue": "False"
                    },
                    "SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{SUPERUSER_PASSWORD}}"
                    },
                    "SECURE_PROXY_SSL_HEADER": {
                      "isOptional": false,
                      "description": "Trust edge TLS termination",
                      "defaultValue": "HTTP_X_FORWARDED_PROTO,https"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "healthchecks",
      "method": "GET",
      "path": "/api/v3/status/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T12:54:26.538Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_29b4c304868c4821a1c6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 110,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "healthchecks"
  }
}
