{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fb180ef8-898d-4eb3-a68f-13dcf03b39f5",
    "slug": "ntfy-with-storage",
    "name": "ntfy with storage",
    "description": "Deploy and Host ntfy with storage with Railway",
    "url": "https://railway.com/deploy/ntfy-with-storage",
    "upstream": {
      "image": "binwiederhier/ntfy:v2.26.0"
    }
  },
  "services": [
    {
      "name": "nfty w/ storage",
      "source": {
        "image": "binwiederhier/ntfy:v2.26.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ntfy",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "nfty w/ storage",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "NTFY_BASE_URL",
      "service": "nfty w/ storage",
      "description": "Will automatically use the public url. May need to update this if you use a custom URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NTFY_AUTH_FILE",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_AUTH_FILE.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/auth.db"
    },
    {
      "key": "NTFY_LOG_LEVEL",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "NTFY_AUTH_USERS",
      "service": "nfty w/ storage",
      "description": "Create a username and get your password hashed, see here: https://docs.ntfy.sh/config/#__tabbed_2_1",
      "secret": false,
      "strategy": "default",
      "default": "username:passwordhash:role"
    },
    {
      "key": "NTFY_CACHE_FILE",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_CACHE_FILE.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/cache.db"
    },
    {
      "key": "NTFY_BEHIND_PROXY",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_BEHIND_PROXY.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NTFY_ENABLE_LOGIN",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_ENABLE_LOGIN.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NTFY_CACHE_DURATION",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_CACHE_DURATION.",
      "secret": false,
      "strategy": "default",
      "default": "720h"
    },
    {
      "key": "NTFY_AUTH_DEFAULT_ACCESS",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_AUTH_DEFAULT_ACCESS.",
      "secret": false,
      "strategy": "default",
      "default": "deny-all"
    },
    {
      "key": "NTFY_ATTACHMENT_CACHE_DIR",
      "service": "nfty w/ storage",
      "description": "Provide a value for NTFY_ATTACHMENT_CACHE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/attachments"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ntfy-with-storage"
      }
    },
    "cli": "railway deploy --template ntfy-with-storage",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fb180ef8-898d-4eb3-a68f-13dcf03b39f5",
            "serializedConfig": {
              "services": {
                "d5866926-d5b4-4779-b5cc-a90817e9193a": {
                  "icon": "https://docs.ntfy.sh/static/img/ntfy.png",
                  "name": "nfty w/ storage",
                  "deploy": {
                    "startCommand": "ntfy serve"
                  },
                  "source": {
                    "image": "binwiederhier/ntfy:v2.26.0"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "80"
                    },
                    "NTFY_BASE_URL": {
                      "description": "Will automatically use the public url. May need to update this if you use a custom URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NTFY_AUTH_FILE": {
                      "defaultValue": "/var/lib/ntfy/auth.db"
                    },
                    "NTFY_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "warn"
                    },
                    "NTFY_AUTH_USERS": {
                      "isOptional": false,
                      "description": "Create a username and get your password hashed, see here: https://docs.ntfy.sh/config/#__tabbed_2_1",
                      "defaultValue": "username:passwordhash:role"
                    },
                    "NTFY_CACHE_FILE": {
                      "defaultValue": "/var/lib/ntfy/cache.db"
                    },
                    "NTFY_BEHIND_PROXY": {
                      "defaultValue": "true"
                    },
                    "NTFY_ENABLE_LOGIN": {
                      "defaultValue": "true"
                    },
                    "NTFY_CACHE_DURATION": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "720h"
                    },
                    "NTFY_AUTH_DEFAULT_ACCESS": {
                      "defaultValue": "deny-all"
                    },
                    "NTFY_ATTACHMENT_CACHE_DIR": {
                      "defaultValue": "/var/lib/ntfy/attachments"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "d5866926-d5b4-4779-b5cc-a90817e9193a": {
                      "mountPath": "/var/lib/ntfy",
                      "backupSchedules": [
                        "DAILY",
                        "WEEKLY",
                        "MONTHLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "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-18T19:57:22.363Z",
  "success_rate_30d": 0.6,
  "validation": {
    "last_run_id": "run_42830846643c4366ac8c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "CRASHED"
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "nfty w/ storage"
  }
}
