{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f2ec6e0-df37-4ccf-8324-18515e1e362d",
    "slug": "nexus-repository",
    "name": "Nexus Repository",
    "description": "Private artifact repository with generated admin and backups",
    "url": "https://railway.com/deploy/nexus-repository",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-nexus3"
    }
  },
  "services": [
    {
      "name": "nexus",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-nexus3"
      },
      "needs_volume": true,
      "volume_mount_path": "/nexus-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "nexus",
      "description": "Nexus HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "NEXUS_ADMIN_PASSWORD",
      "service": "nexus",
      "description": "Generated admin password. Sign in and explicitly accept the CE EULA before creating repositories.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "INSTALL4J_ADD_VM_PARAMS",
      "service": "nexus",
      "description": "Bounded JVM memory and persistent preferences.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms512m -Xmx1536m -XX:MaxDirectMemorySize=1024m -Djava.util.prefs.userRoot=/nexus-data/javaprefs"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nexus-repository"
      }
    },
    "cli": "railway deploy --template nexus-repository",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f2ec6e0-df37-4ccf-8324-18515e1e362d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "cc727f8e-a595-422b-a5ee-c9a3fd7b417f": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-nexus3/e586b0046cad1a3c769f4520dec35921e401f39b/assets/nexus-icon.png",
                  "name": "nexus",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/service/rest/v1/status",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-nexus3",
                    "commitSha": "ac15c46d96d58149697832fa1e65cc62814f9bf9",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Nexus HTTP port.",
                      "defaultValue": "8081"
                    },
                    "NEXUS_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password. Sign in and explicitly accept the CE EULA before creating repositories.",
                      "defaultValue": "{{NEXUS_ADMIN_PASSWORD}}"
                    },
                    "INSTALL4J_ADD_VM_PARAMS": {
                      "isOptional": false,
                      "description": "Bounded JVM memory and persistent preferences.",
                      "defaultValue": "-Xms512m -Xmx1536m -XX:MaxDirectMemorySize=1024m -Djava.util.prefs.userRoot=/nexus-data/javaprefs"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8081": {
                        "port": 8081
                      }
                    }
                  },
                  "volumeMounts": {
                    "cc727f8e-a595-422b-a5ee-c9a3fd7b417f": {
                      "mountPath": "/nexus-data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nexus",
      "method": "GET",
      "path": "/service/rest/v1/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T06:02:55.482Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0cb34a85ef4c4caebacc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 149,
    "typical_build_seconds": 20,
    "typical_start_seconds": 40,
    "slowest_service": "nexus"
  }
}
