{
  "manifest_version": "1.0.0",
  "template": {
    "id": "189939b9-a793-459b-8d6a-ab7db6518bcf",
    "slug": "checkmate-production",
    "name": "Checkmate Production",
    "description": "Open-source uptime monitoring with incidents and public status pages",
    "url": "https://railway.com/deploy/checkmate-production",
    "upstream": {
      "image": "ghcr.io/bluewave-labs/checkmate@sha256:43bcd82002f25fec003fcd5b850ec69106eae5624ad806322be9084af16bdb0a"
    }
  },
  "services": [
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "Checkmate",
      "source": {
        "image": "ghcr.io/bluewave-labs/checkmate@sha256:43bcd82002f25fec003fcd5b850ec69106eae5624ad806322be9084af16bdb0a"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private authenticated connection URL used by Checkmate.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Randomly generated password for the MongoDB root user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Username for the MongoDB root user.",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "PORT",
      "service": "Checkmate",
      "description": "Port used by Checkmate and Railway public networking.",
      "secret": false,
      "strategy": "default",
      "default": "52345"
    },
    {
      "key": "NODE_ENV",
      "service": "Checkmate",
      "description": "Enable production behavior and rate limits.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "JWT_SECRET",
      "service": "Checkmate",
      "description": "Randomly generated secret used to sign authentication tokens.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLIENT_HOST",
      "service": "Checkmate",
      "description": "Public URL used for CORS, emails, invitations, and status pages.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_CONNECTION_STRING",
      "service": "Checkmate",
      "description": "Private authenticated connection to the MongoDB database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Checkmate",
      "description": "Time allowed for Checkmate to shut down gracefully.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "checkmate-production"
      }
    },
    "cli": "railway deploy --template checkmate-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "189939b9-a793-459b-8d6a-ab7db6518bcf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3222200b-00d7-4b17-aba9-0cda26e7d6aa": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private authenticated connection URL used by Checkmate.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for the MongoDB root user.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the MongoDB root user.",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "3222200b-00d7-4b17-aba9-0cda26e7d6aa": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "f5cc1857-4d0c-4c0e-9d3a-821763c3d309": {
                  "icon": "https://demo.checkmate.so/checkmate_favicon.svg",
                  "name": "Checkmate",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bluewave-labs/checkmate@sha256:43bcd82002f25fec003fcd5b850ec69106eae5624ad806322be9084af16bdb0a"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by Checkmate and Railway public networking.",
                      "defaultValue": "52345"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Enable production behavior and rate limits.",
                      "defaultValue": "production"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Randomly generated secret used to sign authentication tokens.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "CLIENT_HOST": {
                      "isOptional": false,
                      "description": "Public URL used for CORS, emails, invitations, and status pages.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "Private authenticated connection to the MongoDB database.",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/uptime_db?authSource=admin"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Time allowed for Checkmate to shut down gracefully.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Checkmate",
      "method": "GET",
      "path": "/api/v1/health",
      "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-09T01:00:41.803Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_cecbdeed27ea4917aa60",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 102,
    "typical_build_seconds": 0,
    "typical_start_seconds": 34,
    "slowest_service": "Checkmate"
  }
}
