{
  "manifest_version": "1.0.0",
  "template": {
    "id": "533c6247-a38d-4080-b7d5-4355e0fdc1d4",
    "slug": "supplier-page-watch-with-changedetection",
    "name": "Supplier Page Watch with ChangeDetection",
    "description": "Private supplier-page monitoring with durable diffs and bounded polling.",
    "url": "https://railway.com/deploy/supplier-page-watch-with-changedetection",
    "upstream": {
      "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
    }
  },
  "services": [
    {
      "name": "App",
      "source": {
        "image": "ghcr.io/dgtlmoon/changedetection.io@sha256:04eaae7915bad711160cb15abe160f6d3fabe98bbbd658509d4b7a654000fb2d"
      },
      "needs_volume": true,
      "volume_mount_path": "/datastore",
      "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": "5000"
    },
    {
      "key": "BASE_URL",
      "service": "App",
      "description": "Provide a value for BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FETCH_WORKERS",
      "service": "App",
      "description": "Provide a value for FETCH_WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "ALLOW_FILE_URI",
      "service": "App",
      "description": "Provide a value for ALLOW_FILE_URI.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "USE_X_SETTINGS",
      "service": "App",
      "description": "Provide a value for USE_X_SETTINGS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PAGE_WATCH_LIMIT",
      "service": "App",
      "description": "Provide a value for PAGE_WATCH_LIMIT.",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "DISABLE_VERSION_CHECK",
      "service": "App",
      "description": "Provide a value for DISABLE_VERSION_CHECK.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LLM_FEATURES_DISABLED",
      "service": "App",
      "description": "Provide a value for LLM_FEATURES_DISABLED.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MINIMUM_SECONDS_RECHECK_TIME",
      "service": "App",
      "description": "Provide a value for MINIMUM_SECONDS_RECHECK_TIME.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "ALLOW_IANA_RESTRICTED_ADDRESSES",
      "service": "App",
      "description": "Provide a value for ALLOW_IANA_RESTRICTED_ADDRESSES.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "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": "supplier-page-watch-with-changedetection"
      }
    },
    "cli": "railway deploy --template supplier-page-watch-with-changedetection",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "533c6247-a38d-4080-b7d5-4355e0fdc1d4",
            "serializedConfig": {
              "services": {
                "1bf89105-dd2e-5053-8dc0-babea377ba9b": {
                  "name": "App",
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "ghcr.io/dgtlmoon/changedetection.io@sha256:04eaae7915bad711160cb15abe160f6d3fabe98bbbd658509d4b7a654000fb2d"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "5000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FETCH_WORKERS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "2"
                    },
                    "ALLOW_FILE_URI": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "USE_X_SETTINGS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1"
                    },
                    "PAGE_WATCH_LIMIT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "100"
                    },
                    "DISABLE_VERSION_CHECK": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "LLM_FEATURES_DISABLED": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "MINIMUM_SECONDS_RECHECK_TIME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "300"
                    },
                    "ALLOW_IANA_RESTRICTED_ADDRESSES": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "669a7ae6-fc65-57c8-857f-eaf48aad79a4": {
                      "mountPath": "/datastore"
                    }
                  }
                },
                "a1be0362-e484-5862-841b-668a11098b58": {
                  "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}}:5000"
                    },
                    "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:23:57.724Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_04379b7b9d1040e2b964",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 106,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "App"
  }
}
