{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7fc4d051-67f0-4e92-a02e-aa96c13a057b",
    "slug": "ntfy-private-railway",
    "name": "ntfy",
    "description": "Private push notifications with durable auth and bucket-backed attachments",
    "url": "https://railway.com/deploy/ntfy-private-railway",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-ntfy"
    }
  },
  "services": [
    {
      "name": "ntfy",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-ntfy"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ntfy",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "S3_BUCKET",
      "service": "ntfy",
      "description": "Railway Bucket name for attachments.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "ntfy",
      "description": "Railway Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "ntfy",
      "description": "Railway Bucket S3-compatible endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NTFY_ADMIN_USER",
      "service": "ntfy",
      "description": "Initial administrator username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "ntfy",
      "description": "Railway Bucket access key ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NTFY_ADMIN_PASSWORD",
      "service": "ntfy",
      "description": "Initial administrator password. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "ntfy",
      "description": "Railway Bucket secret access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ntfy-private-railway"
      }
    },
    "cli": "railway deploy --template ntfy-private-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7fc4d051-67f0-4e92-a02e-aa96c13a057b",
            "serializedConfig": {
              "buckets": {
                "d5c26b93-c337-4740-b93e-c333edd10e71": {
                  "name": "attachments"
                }
              },
              "services": {
                "f4cb2182-eeaa-4110-ae0a-0d07f887f35f": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-ntfy/0c79164d19bbbe85d50d6b231617e8d9fde6509e/icon.png",
                  "name": "ntfy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-ntfy",
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Railway Bucket name for attachments.",
                      "defaultValue": "${{attachments.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Railway Bucket region.",
                      "defaultValue": "${{attachments.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway Bucket S3-compatible endpoint.",
                      "defaultValue": "${{attachments.ENDPOINT}}"
                    },
                    "NTFY_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Initial administrator username.",
                      "defaultValue": "admin"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway Bucket access key ID.",
                      "defaultValue": "${{attachments.ACCESS_KEY_ID}}"
                    },
                    "NTFY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial administrator password. Generated for every deployment.",
                      "defaultValue": "{{NTFY_ADMIN_PASSWORD}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway Bucket secret access key.",
                      "defaultValue": "${{attachments.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f4cb2182-eeaa-4110-ae0a-0d07f887f35f": {
                      "mountPath": "/var/lib/ntfy",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ntfy",
      "method": "GET",
      "path": "/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T06:08:27.462Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8726caddf1c34920b1e9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 29,
    "typical_build_seconds": 10,
    "typical_start_seconds": 0,
    "slowest_service": "ntfy"
  }
}
