{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2dd37fa9-8405-4ed5-ab33-7f517e016de1",
    "slug": "ntfysh",
    "name": "ntfy",
    "description": "An open-source, self-hostable push notification service.",
    "url": "https://railway.com/deploy/ntfysh",
    "upstream": {
      "image": "binwiederhier/ntfy"
    }
  },
  "services": [
    {
      "name": "ntfy",
      "source": {
        "image": "binwiederhier/ntfy"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ntfy",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "NTFY_BASE_URL",
      "service": "ntfy",
      "description": "Public facing base URL of the service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NTFY_AUTH_FILE",
      "service": "ntfy",
      "description": "Database file for authentication and access control",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/auth.db"
    },
    {
      "key": "NTFY_CACHE_FILE",
      "service": "ntfy",
      "description": "Database file for the message cache",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/cache.db"
    },
    {
      "key": "NTFY_BEHIND_PROXY",
      "service": "ntfy",
      "description": "If set, use forwarded header (e.g. X-Forwarded-For, X-Client-IP) to determine visitor IP address (for rate limiting)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NTFY_ATTACHMENT_CACHE_DIR",
      "service": "ntfy",
      "description": "Cache directory for attached files, or S3 URL for object storage (format: s3://KEY:SECRET@BUCKET[/PREFIX]?region=REGION[&endpoint=ENDPOINT]).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/attachments"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ntfysh"
      }
    },
    "cli": "railway deploy --template ntfysh",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2dd37fa9-8405-4ed5-ab33-7f517e016de1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "bc15144b-151c-445d-9c56-f50123590ebd": {
                  "icon": null,
                  "name": "ntfy",
                  "deploy": {
                    "startCommand": "ntfy serve",
                    "healthcheckPath": "/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "binwiederhier/ntfy"
                  },
                  "variables": {
                    "NTFY_BASE_URL": {
                      "isOptional": true,
                      "description": "Public facing base URL of the service",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NTFY_AUTH_FILE": {
                      "isOptional": true,
                      "description": "Database file for authentication and access control",
                      "defaultValue": "/var/lib/ntfy/auth.db"
                    },
                    "NTFY_CACHE_FILE": {
                      "isOptional": true,
                      "description": "Database file for the message cache",
                      "defaultValue": "/var/lib/ntfy/cache.db"
                    },
                    "NTFY_BEHIND_PROXY": {
                      "isOptional": true,
                      "description": "If set, use forwarded header (e.g. X-Forwarded-For, X-Client-IP) to determine visitor IP address (for rate limiting)",
                      "defaultValue": "true"
                    },
                    "NTFY_ATTACHMENT_CACHE_DIR": {
                      "isOptional": true,
                      "description": "Cache directory for attached files, or S3 URL for object storage (format: s3://KEY:SECRET@BUCKET[/PREFIX]?region=REGION[&endpoint=ENDPOINT]).",
                      "defaultValue": "/var/lib/ntfy/attachments"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "bc15144b-151c-445d-9c56-f50123590ebd": {
                      "mountPath": "/var/lib/ntfy"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ntfy",
      "method": "GET",
      "path": "/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T16:30:57.265Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_b15bcb53aad0445281d1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
