{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bf203f16-fc86-4b4b-a445-25f4c88c2a51",
    "slug": "on-call-notification-router-with-apprise",
    "name": "On-call Notification Router with Apprise",
    "description": "An authenticated notification router with persistent provider routes.",
    "url": "https://railway.com/deploy/on-call-notification-router-with-apprise",
    "upstream": {
      "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
    }
  },
  "services": [
    {
      "name": "App",
      "source": {
        "image": "caronc/apprise@sha256:0b2913b15c8eb47c25345722985ffbfae701326edde21909c205d296d62dd52c"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": false
    },
    {
      "name": "Gateway",
      "source": {
        "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "App",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "App",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "APPRISE_ATTACH_SIZE",
      "service": "App",
      "description": "Provide a value for APPRISE_ATTACH_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "APPRISE_STORAGE_PATH",
      "service": "App",
      "description": "Provide a value for APPRISE_STORAGE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/config/store"
    },
    {
      "key": "APPRISE_WORKER_COUNT",
      "service": "App",
      "description": "Provide a value for APPRISE_WORKER_COUNT.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "APPRISE_STATEFUL_MODE",
      "service": "App",
      "description": "Provide a value for APPRISE_STATEFUL_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "simple"
    },
    {
      "key": "PORT",
      "service": "Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Gateway",
      "description": "Provide a value for UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Gateway",
      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "on-call-notification-router-with-apprise"
      }
    },
    "cli": "railway deploy --template on-call-notification-router-with-apprise",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bf203f16-fc86-4b4b-a445-25f4c88c2a51",
            "serializedConfig": {
              "services": {
                "5220e7ab-dd08-547e-9f78-3c5e99a1b025": {
                  "name": "App",
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "caronc/apprise@sha256:0b2913b15c8eb47c25345722985ffbfae701326edde21909c205d296d62dd52c"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8000"
                    },
                    "APPRISE_ATTACH_SIZE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "APPRISE_STORAGE_PATH": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/config/store"
                    },
                    "APPRISE_WORKER_COUNT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1"
                    },
                    "APPRISE_STATEFUL_MODE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "simple"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "4193f61b-ab86-5f0d-a360-64a23441585f": {
                      "mountPath": "/config"
                    }
                  }
                },
                "c18d367e-ff65-5f00-b5d7-32f9ed49f830": {
                  "name": "Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -eu; hash=$(caddy hash-password --plaintext \"$GATEWAY_PASSWORD\"); printf \"{\\n admin off\\n auto_https off\\n}\\n:8080 {\\n header X-Robots-Tag noindex\\n basic_auth {\\n operator %s\\n }\\n reverse_proxy %s {\\n header_up X-Forwarded-Proto https\\n }\\n}\\n\" \"$hash\" \"$UPSTREAM\" > /tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{App.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:17:15.699Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a64e1a79027641ee8715",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 123,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Gateway"
  }
}
