{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a3411afa-04a3-4e33-8e8f-6abc054a2565",
    "slug": "verdaccio",
    "name": "Verdaccio",
    "description": "A private npm registry that also caches packages from npmjs.com",
    "url": "https://railway.com/deploy/verdaccio",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/verdaccio-railway"
    }
  },
  "services": [
    {
      "name": "verdaccio",
      "source": {
        "repo": "https://github.com/gridalpha/verdaccio-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "verdaccio",
      "description": "HTTP port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "4873"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "verdaccio",
      "description": "Node heap ceiling in megabytes",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=2048"
    },
    {
      "key": "VERDACCIO_PORT",
      "service": "verdaccio",
      "description": "Port the registry binds",
      "secret": false,
      "strategy": "default",
      "default": "4873"
    },
    {
      "key": "VERDACCIO_ADDRESS",
      "service": "verdaccio",
      "description": "Listen address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "VERDACCIO_DATA_DIR",
      "service": "verdaccio",
      "description": "Volume mount holding storage and users",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "VERDACCIO_PROTOCOL",
      "service": "verdaccio",
      "description": "Railway's edge terminates TLS",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "VERDACCIO_MAX_USERS",
      "service": "verdaccio",
      "description": "Self-registration limit; -1 blocks signup",
      "secret": false,
      "strategy": "default",
      "default": "-1"
    },
    {
      "key": "VERDACCIO_ADMIN_USER",
      "service": "verdaccio",
      "description": "Registry account created at start-up",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "VERDACCIO_PUBLIC_URL",
      "service": "verdaccio",
      "description": "Base URL for tarball links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VERDACCIO_UPLINK_URL",
      "service": "verdaccio",
      "description": "Upstream registry proxied and cached",
      "secret": false,
      "strategy": "default",
      "default": "https://registry.npmjs.org/"
    },
    {
      "key": "VERDACCIO_ADMIN_PASSWORD",
      "service": "verdaccio",
      "description": "Password for that account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VERDACCIO_PACKAGE_ACCESS",
      "service": "verdaccio",
      "description": "Who may read packages",
      "secret": false,
      "strategy": "default",
      "default": "$authenticated"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "verdaccio",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "verdaccio"
      }
    },
    "cli": "railway deploy --template verdaccio",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a3411afa-04a3-4e33-8e8f-6abc054a2565",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9c968a4e-d4be-4c52-a73f-63ae76bc6820": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/verdaccio-dark.svg",
                  "name": "verdaccio",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/verdaccio-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway probes",
                      "defaultValue": "4873"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling in megabytes",
                      "defaultValue": "--max-old-space-size=2048"
                    },
                    "VERDACCIO_PORT": {
                      "isOptional": false,
                      "description": "Port the registry binds",
                      "defaultValue": "4873"
                    },
                    "VERDACCIO_ADDRESS": {
                      "isOptional": false,
                      "description": "Listen address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "VERDACCIO_DATA_DIR": {
                      "isOptional": false,
                      "description": "Volume mount holding storage and users",
                      "defaultValue": "/data"
                    },
                    "VERDACCIO_PROTOCOL": {
                      "isOptional": false,
                      "description": "Railway's edge terminates TLS",
                      "defaultValue": "http"
                    },
                    "VERDACCIO_MAX_USERS": {
                      "isOptional": false,
                      "description": "Self-registration limit; -1 blocks signup",
                      "defaultValue": "-1"
                    },
                    "VERDACCIO_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Registry account created at start-up",
                      "defaultValue": "admin"
                    },
                    "VERDACCIO_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Base URL for tarball links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VERDACCIO_UPLINK_URL": {
                      "isOptional": false,
                      "description": "Upstream registry proxied and cached",
                      "defaultValue": "https://registry.npmjs.org/"
                    },
                    "VERDACCIO_PRIVATE_SCOPE": {
                      "isOptional": true,
                      "description": "Optional scope never proxied upstream",
                      "defaultValue": ""
                    },
                    "VERDACCIO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "{{VERDACCIO_ADMIN_PASSWORD}}"
                    },
                    "VERDACCIO_PACKAGE_ACCESS": {
                      "isOptional": false,
                      "description": "Who may read packages",
                      "defaultValue": "$authenticated"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4873": {
                        "port": 4873
                      }
                    }
                  },
                  "volumeMounts": {
                    "9c968a4e-d4be-4c52-a73f-63ae76bc6820": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "verdaccio",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:46:22.417Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_75aab006a30745ab85e7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "verdaccio"
  }
}
