{
  "manifest_version": "1.0.0",
  "template": {
    "id": "093874b5-6c2e-4667-924b-cee6bf342a86",
    "slug": "yacy",
    "name": "YaCy",
    "description": "Search engine that crawls and indexes the sites you choose",
    "url": "https://railway.com/deploy/yacy",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/yacy-railway"
    }
  },
  "services": [
    {
      "name": "yacy",
      "source": {
        "repo": "https://github.com/gridalpha/yacy-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/yacy_search_server/DATA",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "yacy",
      "description": "Health-check port serving /healthz",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "YACY_HTTP_PORT",
      "service": "yacy",
      "description": "Port YaCy serves on; public domain target",
      "secret": false,
      "strategy": "default",
      "default": "8090"
    },
    {
      "key": "YACY_ADMIN_USER",
      "service": "yacy",
      "description": "Administrator login name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "YACY_ADMIN_REALM",
      "service": "yacy",
      "description": "HTTP Digest realm for the login",
      "secret": false,
      "strategy": "default",
      "default": "YaCy-AdminUI"
    },
    {
      "key": "YACY_NETWORK_UNIT",
      "service": "yacy",
      "description": "Standalone portal; freeworld unit joins P2P",
      "secret": false,
      "strategy": "default",
      "default": "defaults/yacy.network.webportal.unit"
    },
    {
      "key": "YACY_PUBLIC_SEARCH",
      "service": "yacy",
      "description": "true publishes search to anonymous visitors",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "YACY_ADMIN_PASSWORD",
      "service": "yacy",
      "description": "Administrator password, min 8 chars",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "yacy"
      }
    },
    "cli": "railway deploy --template yacy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "093874b5-6c2e-4667-924b-cee6bf342a86",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "88047b15-a52e-4a46-9b07-001960758849": {
                  "icon": "https://cdn.jsdelivr.net/gh/yacy/yacy_search_server@master/htroot/env/grafics/YaCyLogo2012.svg",
                  "name": "yacy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/yacy-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port serving /healthz",
                      "defaultValue": "8080"
                    },
                    "YACY_HTTP_PORT": {
                      "isOptional": true,
                      "description": "Port YaCy serves on; public domain target",
                      "defaultValue": "8090"
                    },
                    "YACY_ADMIN_USER": {
                      "isOptional": true,
                      "description": "Administrator login name",
                      "defaultValue": "admin"
                    },
                    "YACY_ADMIN_REALM": {
                      "isOptional": true,
                      "description": "HTTP Digest realm for the login",
                      "defaultValue": "YaCy-AdminUI"
                    },
                    "YACY_NETWORK_UNIT": {
                      "isOptional": true,
                      "description": "Standalone portal; freeworld unit joins P2P",
                      "defaultValue": "defaults/yacy.network.webportal.unit"
                    },
                    "YACY_PUBLIC_SEARCH": {
                      "isOptional": true,
                      "description": "true publishes search to anonymous visitors",
                      "defaultValue": "false"
                    },
                    "YACY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Administrator password, min 8 chars",
                      "defaultValue": "{{YACY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8090": {
                        "port": 8090
                      }
                    }
                  },
                  "volumeMounts": {
                    "88047b15-a52e-4a46-9b07-001960758849": {
                      "mountPath": "/opt/yacy_search_server/DATA"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "yacy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T16:15:03.821Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-17T16:23:21.479Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_9bad223fed994d388534",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 401, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
