{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0d91cced-0d2f-46cc-8bee-aef036eb7c2f",
    "slug": "uptimy-agent",
    "name": "Uptimy Agent",
    "description": "Self-hosted uptime monitoring and status page for your Railway services",
    "url": "https://railway.com/deploy/uptimy-agent",
    "upstream": {
      "image": "ghcr.io/uptimy/agent:latest"
    }
  },
  "services": [
    {
      "name": "Uptimy Agent",
      "source": {
        "image": "ghcr.io/uptimy/agent:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ADMIN_PASSWORD",
      "service": "Uptimy Agent",
      "description": "Password for the `admin` user, generated per deploy and visible in the service's Variables tab. More users can be added in the UI.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "Uptimy Agent",
      "description": "Default Admin username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Uptimy Agent",
      "description": "Railway volumes are mounted as root; the image runs as a non-root user by default.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "uptimy-agent"
      }
    },
    "cli": "railway deploy --template uptimy-agent",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0d91cced-0d2f-46cc-8bee-aef036eb7c2f",
            "serializedConfig": {
              "services": {
                "eeb2765e-185c-4eb3-b5ec-a6b146f09c36": {
                  "icon": "https://www.upti.my/brand/uptimy-app-icon.png",
                  "name": "Uptimy Agent",
                  "deploy": {
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/uptimy/agent:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 1,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 2,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 3,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 4,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 5,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 6,
                          "endHour": 24,
                          "startHour": 0
                        }
                      ]
                    }
                  },
                  "variables": {
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the `admin` user, generated per deploy and visible in the service's Variables tab. More users can be added in the UI.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": true,
                      "description": "Default Admin username.",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Railway volumes are mounted as root; the image runs as a non-root user by default.",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "eeb2765e-185c-4eb3-b5ec-a6b146f09c36": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Uptimy Agent",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-01T16:15:23.143Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-01T16:25:07.157Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_76499cefc4264f0ea499",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 56,
    "typical_build_seconds": 0,
    "typical_start_seconds": 11,
    "slowest_service": "Uptimy Agent"
  }
}
