{
  "manifest_version": "1.0.0",
  "template": {
    "id": "28c07a58-dde3-4807-8fd2-6bcc02d602b6",
    "slug": "watcharr-media-tracker",
    "name": "Watcharr media tracker",
    "description": "Protected movie, television, anime, and game tracking.",
    "url": "https://railway.com/deploy/watcharr-media-tracker",
    "upstream": {
      "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
    }
  },
  "services": [
    {
      "name": "Watcharr Gateway",
      "source": {
        "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Watcharr",
      "source": {
        "image": "ghcr.io/sbondco/watcharr:v4.2.1@sha256:62d24ca2fdc634f313e674a7ddba7b0fc6238a216fae9ebd6891755cd54eb1cf"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Watcharr Gateway",
      "description": "Public gateway listener.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Watcharr Gateway",
      "description": "Private Watcharr endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_CONFIG",
      "service": "Watcharr Gateway",
      "description": "Pinned selective authentication policy.",
      "secret": false,
      "strategy": "default",
      "default": ":8080 {\n  handle /healthz {\n    rewrite * /\n    reverse_proxy http://__UPSTREAM__\n  }\n  @bootstrap path /api/setup* /api/auth/register*\n  basic_auth @bootstrap {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}\n    }\n  }\n}"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Watcharr Gateway",
      "description": "Generated password protecting setup and registration routes.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GATEWAY_USERNAME",
      "service": "Watcharr Gateway",
      "description": "Username protecting setup and registration routes.",
      "secret": false,
      "strategy": "default",
      "default": "watcharr-setup"
    },
    {
      "key": "PORT",
      "service": "Watcharr",
      "description": "Bundled UI listener used by Railway health checks.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "WATCHARR_DATA",
      "service": "Watcharr",
      "description": "Persistent SQLite, settings, and artwork directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "watcharr-media-tracker"
      }
    },
    "cli": "railway deploy --template watcharr-media-tracker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "28c07a58-dde3-4807-8fd2-6bcc02d602b6",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1075a9f8-d8fc-4ff9-9d06-497f8031e4dd": {
                  "icon": null,
                  "name": "Watcharr 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": "Public gateway listener.",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Private Watcharr endpoint.",
                      "defaultValue": "${{Watcharr.RAILWAY_PRIVATE_DOMAIN}}:3080"
                    },
                    "GATEWAY_CONFIG": {
                      "isOptional": false,
                      "description": "Pinned selective authentication policy.",
                      "defaultValue": ":8080 {\n  handle /healthz {\n    rewrite * /\n    reverse_proxy http://__UPSTREAM__\n  }\n  @bootstrap path /api/setup* /api/auth/register*\n  basic_auth @bootstrap {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}\n    }\n  }\n}"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password protecting setup and registration routes.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    },
                    "GATEWAY_USERNAME": {
                      "isOptional": false,
                      "description": "Username protecting setup and registration routes.",
                      "defaultValue": "watcharr-setup"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "9cf29a9c-442b-4d90-bb79-fdc2fae6359b": {
                  "icon": null,
                  "name": "Watcharr",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/sbondco/watcharr:v4.2.1@sha256:62d24ca2fdc634f313e674a7ddba7b0fc6238a216fae9ebd6891755cd54eb1cf"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Bundled UI listener used by Railway health checks.",
                      "defaultValue": "3000"
                    },
                    "WATCHARR_DATA": {
                      "isOptional": false,
                      "description": "Persistent SQLite, settings, and artwork directory.",
                      "defaultValue": "/data"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9cf29a9c-442b-4d90-bb79-fdc2fae6359b": {
                      "sizeMB": 5000,
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Watcharr 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:09:07.748Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_45f43b89e96c4041ab45",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 73,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Watcharr Gateway"
  }
}
