{
  "manifest_version": "1.0.0",
  "template": {
    "id": "242b114e-b155-4960-8928-9c3e178761fc",
    "slug": "presidio-pii",
    "name": "Presidio",
    "description": "Authenticated PII detection and anonymization API",
    "url": "https://railway.com/deploy/presidio-pii",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-presidio"
    }
  },
  "services": [
    {
      "name": "anonymizer",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-presidio"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-presidio"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "analyzer",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-presidio"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "anonymizer",
      "description": "Private Presidio Anonymizer HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Authenticated proxy port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ANALYZER_URL",
      "service": "proxy",
      "description": "Private Analyzer origin. Keep this service reference unchanged.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ANONYMIZER_URL",
      "service": "proxy",
      "description": "Private Anonymizer origin. Keep this service reference unchanged.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASIC_AUTH_USER",
      "service": "proxy",
      "description": "HTTP Basic username for Presidio endpoints.",
      "secret": false,
      "strategy": "default",
      "default": "presidio"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "proxy",
      "description": "Generated HTTP Basic password for Presidio endpoints.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "analyzer",
      "description": "Private Presidio Analyzer HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "presidio-pii"
      }
    },
    "cli": "railway deploy --template presidio-pii",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "242b114e-b155-4960-8928-9c3e178761fc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "251c70aa-e690-4c28-80be-6321b22fcc41": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-presidio/41236aafe976bb046e1a4d9fa0082dd1fa3c72c8/assets/presidio-icon.png",
                  "name": "anonymizer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-presidio",
                    "rootDirectory": "/anonymizer"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private Presidio Anonymizer HTTP port.",
                      "defaultValue": "3000"
                    }
                  }
                },
                "37a05177-afb4-4cb9-8ab9-1fbb185a0f3d": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-presidio/41236aafe976bb046e1a4d9fa0082dd1fa3c72c8/assets/presidio-icon.png",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-presidio",
                    "rootDirectory": "/proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Authenticated proxy port used by the Railway public domain.",
                      "defaultValue": "8080"
                    },
                    "ANALYZER_URL": {
                      "isOptional": false,
                      "description": "Private Analyzer origin. Keep this service reference unchanged.",
                      "defaultValue": "http://${{analyzer.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "ANONYMIZER_URL": {
                      "isOptional": false,
                      "description": "Private Anonymizer origin. Keep this service reference unchanged.",
                      "defaultValue": "http://${{anonymizer.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "BASIC_AUTH_USER": {
                      "isOptional": false,
                      "description": "HTTP Basic username for Presidio endpoints.",
                      "defaultValue": "presidio"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated HTTP Basic password for Presidio endpoints.",
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "86af6d34-27c5-4672-a057-cb353109f528": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-presidio/41236aafe976bb046e1a4d9fa0082dd1fa3c72c8/assets/presidio-icon.png",
                  "name": "analyzer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-presidio",
                    "rootDirectory": "/analyzer"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private Presidio Analyzer HTTP port.",
                      "defaultValue": "3000"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T12:12:23.348Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_918f71f3b8d141aaad92",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 102,
    "typical_build_seconds": 10,
    "typical_start_seconds": 0,
    "slowest_service": "proxy"
  }
}
