{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f88a1325-3499-4c18-9f42-71060def92c7",
    "slug": "apprise-notification-gateway",
    "name": "Apprise notification gateway",
    "description": "Authenticated Apprise gateway with persistent notification routes.",
    "url": "https://railway.com/deploy/apprise-notification-gateway",
    "upstream": {
      "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
    }
  },
  "services": [
    {
      "name": "Apprise API",
      "source": {
        "image": "caronc/apprise:1.5.1@sha256:1871ed736799f6320d5061b72a60507f62c8747026e830175dc4b9f8adbf78dd"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": false
    },
    {
      "name": "Apprise Gateway",
      "source": {
        "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Apprise API",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "APPRISE_ADMIN",
      "service": "Apprise API",
      "description": "Enable the configuration UI.",
      "secret": false,
      "strategy": "default",
      "default": "y"
    },
    {
      "key": "APPRISE_ATTACH_DIR",
      "service": "Apprise API",
      "description": "Attachment directory inside the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "/config/attach"
    },
    {
      "key": "APPRISE_CONFIG_DIR",
      "service": "Apprise API",
      "description": "Persistent configuration directory.",
      "secret": false,
      "strategy": "default",
      "default": "/config"
    },
    {
      "key": "APPRISE_STORAGE_DIR",
      "service": "Apprise API",
      "description": "Persistent Apprise cache and state directory.",
      "secret": false,
      "strategy": "default",
      "default": "/config/store"
    },
    {
      "key": "APPRISE_WORKER_COUNT",
      "service": "Apprise API",
      "description": "Bound background notification workers for a small service.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "APPRISE_STATEFUL_MODE",
      "service": "Apprise API",
      "description": "Store named notification configurations on disk.",
      "secret": false,
      "strategy": "default",
      "default": "simple"
    },
    {
      "key": "PORT",
      "service": "Apprise Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Apprise Gateway",
      "description": "Private Apprise endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_CONFIG",
      "service": "Apprise Gateway",
      "description": "Authenticated reverse-proxy configuration.",
      "secret": false,
      "strategy": "default",
      "default": ":8080 {\n  handle /healthz {\n    rewrite * /status\n    reverse_proxy http://__UPSTREAM__\n  }\n  @protected not path /healthz\n  basic_auth @protected {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up -Authorization\n    }\n  }\n}"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Apprise Gateway",
      "description": "Generated public UI and API password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GATEWAY_USERNAME",
      "service": "Apprise Gateway",
      "description": "Public UI and API username.",
      "secret": false,
      "strategy": "default",
      "default": "apprise"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apprise-notification-gateway"
      }
    },
    "cli": "railway deploy --template apprise-notification-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f88a1325-3499-4c18-9f42-71060def92c7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4d231d3f-1656-48e7-be79-30a270f94b8a": {
                  "icon": null,
                  "name": "Apprise API",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/status",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caronc/apprise:1.5.1@sha256:1871ed736799f6320d5061b72a60507f62c8747026e830175dc4b9f8adbf78dd"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8000"
                    },
                    "APPRISE_ADMIN": {
                      "isOptional": false,
                      "description": "Enable the configuration UI.",
                      "defaultValue": "y"
                    },
                    "APPRISE_ATTACH_DIR": {
                      "isOptional": false,
                      "description": "Attachment directory inside the persistent volume.",
                      "defaultValue": "/config/attach"
                    },
                    "APPRISE_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Persistent configuration directory.",
                      "defaultValue": "/config"
                    },
                    "APPRISE_STORAGE_DIR": {
                      "isOptional": false,
                      "description": "Persistent Apprise cache and state directory.",
                      "defaultValue": "/config/store"
                    },
                    "APPRISE_WORKER_COUNT": {
                      "isOptional": false,
                      "description": "Bound background notification workers for a small service.",
                      "defaultValue": "1"
                    },
                    "APPRISE_STATEFUL_MODE": {
                      "isOptional": false,
                      "description": "Store named notification configurations on disk.",
                      "defaultValue": "simple"
                    }
                  },
                  "volumeMounts": {
                    "4d231d3f-1656-48e7-be79-30a270f94b8a": {
                      "sizeMB": 5000,
                      "mountPath": "/config"
                    }
                  }
                },
                "5d6a83f1-5c9f-49c9-ae38-f2f1a1887b27": {
                  "icon": null,
                  "name": "Apprise Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -ec 'password_hash=\"$(caddy hash-password --plaintext \"$GATEWAY_PASSWORD\")\"; printf \"%s\\n\" \"$GATEWAY_CONFIG\" | sed -e \"s|__USERNAME__|$GATEWAY_USERNAME|g\" -e \"s|__PASSWORD_HASH__|$password_hash|g\" -e \"s|__UPSTREAM__|$UPSTREAM|g\" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Private Apprise endpoint.",
                      "defaultValue": "${{Apprise API.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "GATEWAY_CONFIG": {
                      "isOptional": false,
                      "description": "Authenticated reverse-proxy configuration.",
                      "defaultValue": ":8080 {\n  handle /healthz {\n    rewrite * /status\n    reverse_proxy http://__UPSTREAM__\n  }\n  @protected not path /healthz\n  basic_auth @protected {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up -Authorization\n    }\n  }\n}"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated public UI and API password.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    },
                    "GATEWAY_USERNAME": {
                      "isOptional": false,
                      "description": "Public UI and API username.",
                      "defaultValue": "apprise"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Apprise Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T19:16:06.910Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_644ff0ccd82646309ddf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 84,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Apprise Gateway"
  }
}
