{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b1d8fc10-9290-4af7-a2cd-ba2a67cb7f99",
    "slug": "ntfy-private-notifications-with-persiste",
    "name": "ntfy Private Notifications with Persistent Data",
    "description": "Private push notifications with generated admin and persistent storage.",
    "url": "https://railway.com/deploy/ntfy-private-notifications-with-persiste",
    "upstream": {
      "image": "binwiederhier/ntfy@sha256:803b2aaeb94df76c8b32ecd91039dc80b0fddb7041dcaf082b33bcdfd4ba39ad"
    }
  },
  "services": [
    {
      "name": "ntfy",
      "source": {
        "image": "binwiederhier/ntfy@sha256:803b2aaeb94df76c8b32ecd91039dc80b0fddb7041dcaf082b33bcdfd4ba39ad"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ntfy",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ntfy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NTFY_BASE_URL",
      "service": "ntfy",
      "description": "Provide a value for NTFY_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NTFY_PASSWORD",
      "service": "ntfy",
      "description": "Initial password for the admin user. Used only when the persistent auth database does not contain that user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NTFY_AUTH_FILE",
      "service": "ntfy",
      "description": "Provide a value for NTFY_AUTH_FILE.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/auth.db"
    },
    {
      "key": "NTFY_CACHE_FILE",
      "service": "ntfy",
      "description": "Provide a value for NTFY_CACHE_FILE.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/ntfy/cache.db"
    },
    {
      "key": "NTFY_LISTEN_HTTP",
      "service": "ntfy",
      "description": "Provide a value for NTFY_LISTEN_HTTP.",
      "secret": false,
      "strategy": "default",
      "default": ":8080"
    },
    {
      "key": "NTFY_BEHIND_PROXY",
      "service": "ntfy",
      "description": "Provide a value for NTFY_BEHIND_PROXY.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NTFY_ENABLE_LOGIN",
      "service": "ntfy",
      "description": "Provide a value for NTFY_ENABLE_LOGIN.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NTFY_ENABLE_SIGNUP",
      "service": "ntfy",
      "description": "Provide a value for NTFY_ENABLE_SIGNUP.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NTFY_UPSTREAM_BASE_URL",
      "service": "ntfy",
      "description": "Provide a value for NTFY_UPSTREAM_BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://ntfy.sh"
    },
    {
      "key": "NTFY_AUTH_DEFAULT_ACCESS",
      "service": "ntfy",
      "description": "Provide a value for NTFY_AUTH_DEFAULT_ACCESS.",
      "secret": false,
      "strategy": "default",
      "default": "deny-all"
    },
    {
      "key": "NTFY_ATTACHMENT_CACHE_DIR",
      "service": "ntfy",
      "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-private-notifications-with-persiste"
      }
    },
    "cli": "railway deploy --template ntfy-private-notifications-with-persiste",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b1d8fc10-9290-4af7-a2cd-ba2a67cb7f99",
            "serializedConfig": {
              "services": {
                "abb3e94b-6a27-5c8e-a2f6-ad9cfdd42f4d": {
                  "name": "ntfy",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /var/lib/ntfy/attachments && ntfy user add --ignore-exists --role=admin admin && exec ntfy serve'",
                    "healthcheckPath": "/v1/health",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "image": "binwiederhier/ntfy@sha256:803b2aaeb94df76c8b32ecd91039dc80b0fddb7041dcaf082b33bcdfd4ba39ad"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "NTFY_BASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NTFY_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial password for the admin user. Used only when the persistent auth database does not contain that user.",
                      "defaultValue": "{{NTFY_PASSWORD}}"
                    },
                    "NTFY_AUTH_FILE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/var/lib/ntfy/auth.db"
                    },
                    "NTFY_CACHE_FILE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/var/lib/ntfy/cache.db"
                    },
                    "NTFY_LISTEN_HTTP": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": ":8080"
                    },
                    "NTFY_BEHIND_PROXY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "NTFY_ENABLE_LOGIN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "NTFY_ENABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "NTFY_UPSTREAM_BASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://ntfy.sh"
                    },
                    "NTFY_AUTH_DEFAULT_ACCESS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "deny-all"
                    },
                    "NTFY_ATTACHMENT_CACHE_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/var/lib/ntfy/attachments"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b202b65e-1d7f-585d-914f-c9eb4b06d414": {
                      "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-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-16T23:19:23.517Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7f3a22cb85d64051a590",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ]
  }
}
