{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81dcd7a2-2890-44bc-8567-506a0f577efe",
    "slug": "hitkeep",
    "name": "HitKeep",
    "description": "Self-hosted, privacy-friendly web analytics on Railway",
    "url": "https://railway.com/deploy/hitkeep",
    "upstream": {
      "image": "pascalebeier/hitkeep:2.13.18"
    }
  },
  "services": [
    {
      "name": "HitKeep",
      "source": {
        "image": "pascalebeier/hitkeep:2.13.18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/hitkeep/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HITKEEP_DB_PATH",
      "service": "HitKeep",
      "description": "Path to HitKeep's SQLite control database on the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/hitkeep/data/hitkeep.db"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "HitKeep",
      "description": "Runs HitKeep as root so it can write to the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "HITKEEP_DATA_PATH",
      "service": "HitKeep",
      "description": "Persistent directory where HitKeep stores tenant analytics databases.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/hitkeep/data"
    },
    {
      "key": "HITKEEP_JWT_SECRET",
      "service": "HitKeep",
      "description": "Secret used to sign HitKeep authentication tokens. A secure value is generated automatically.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HITKEEP_PUBLIC_URL",
      "service": "HitKeep",
      "description": "Public HTTPS URL where this HitKeep instance is accessible. Set automatically from the Railway public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hitkeep"
      }
    },
    "cli": "railway deploy --template hitkeep",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81dcd7a2-2890-44bc-8567-506a0f577efe",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3dd4cd83-4cfc-4f89-b249-e2aabbd37d9f": {
                  "icon": "https://devicons.railway.app/hitkeep",
                  "name": "HitKeep",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pascalebeier/hitkeep:2.13.18"
                  },
                  "variables": {
                    "HITKEEP_DB_PATH": {
                      "isOptional": false,
                      "description": "Path to HitKeep's SQLite control database on the persistent volume.",
                      "defaultValue": "/var/lib/hitkeep/data/hitkeep.db"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs HitKeep as root so it can write to the persistent volume.",
                      "defaultValue": "0"
                    },
                    "HITKEEP_DATA_PATH": {
                      "isOptional": false,
                      "description": "Persistent directory where HitKeep stores tenant analytics databases.",
                      "defaultValue": "/var/lib/hitkeep/data"
                    },
                    "HITKEEP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign HitKeep authentication tokens. A secure value is generated automatically.",
                      "defaultValue": "{{HITKEEP_JWT_SECRET}}"
                    },
                    "HITKEEP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS URL where this HitKeep instance is accessible. Set automatically from the Railway public domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "3dd4cd83-4cfc-4f89-b249-e2aabbd37d9f": {
                      "mountPath": "/var/lib/hitkeep/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "HitKeep",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T04:14:35.474Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T04:03:45.947Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4735f510c6d94d1d994c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "HitKeep"
  }
}
