{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1204fdaa-3a7f-4b73-87b1-83cf3cd2b0cb",
    "slug": "docker-registry-private",
    "name": "Docker Registry | (Just Updated) Private Registry With Login, Not Open to the Internet",
    "description": "Private Docker registry with login. Images survive redeploys, deletes work",
    "url": "https://railway.com/deploy/docker-registry-private",
    "upstream": {
      "image": "ghcr.io/bon5co/docker-registry-railway@sha256:40ef4b519a8cbbc88e096a7423c141681edba46306cf6deb1a0e642640972710"
    }
  },
  "services": [
    {
      "name": "registry",
      "source": {
        "image": "ghcr.io/bon5co/docker-registry-railway@sha256:40ef4b519a8cbbc88e096a7423c141681edba46306cf6deb1a0e642640972710"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/registry",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REGISTRY_PASSWORD",
      "service": "registry",
      "description": "Provide a value for REGISTRY_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "docker-registry-private"
      }
    },
    "cli": "railway deploy --template docker-registry-private",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1204fdaa-3a7f-4b73-87b1-83cf3cd2b0cb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b6a8b81d-27db-4c25-9631-389224777ccc": {
                  "icon": null,
                  "name": "registry",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/docker-registry-railway@sha256:40ef4b519a8cbbc88e096a7423c141681edba46306cf6deb1a0e642640972710"
                  },
                  "variables": {
                    "REGISTRY_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REGISTRY_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b6a8b81d-27db-4c25-9631-389224777ccc": {
                      "mountPath": "/var/lib/registry"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "registry",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T04:14:34.944Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:18:39.438Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a68da342c4294eb387f9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 42,
    "typical_build_seconds": 0,
    "typical_start_seconds": 6,
    "slowest_service": "registry"
  }
}
