{
  "manifest_version": "1.0.0",
  "template": {
    "id": "55168cb7-616f-4d72-a59b-4d88c074a0d2",
    "slug": "registry",
    "name": "registry",
    "description": "One-click Docker Registry on Railway with S3 storage and basic auth",
    "url": "https://railway.com/deploy/registry",
    "upstream": {
      "repo_url": "https://github.com/smolpaw/railway-registry"
    }
  },
  "services": [
    {
      "name": "registry",
      "source": {
        "repo": "https://github.com/smolpaw/railway-registry"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HTTP_SECRET",
      "service": "registry",
      "description": "Random string used to sign tokens internally",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_PASSWORD",
      "service": "registry",
      "description": "Password for docker login",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTH_USERNAME",
      "service": "registry",
      "description": "Username for docker login",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "AWS_ENDPOINT_URL",
      "service": "registry",
      "description": "Provide a value for AWS_ENDPOINT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "registry",
      "description": "Provide a value for AWS_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_DEFAULT_REGION",
      "service": "registry",
      "description": "Provide a value for AWS_DEFAULT_REGION.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_BUCKET_NAME",
      "service": "registry",
      "description": "Provide a value for AWS_S3_BUCKET_NAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "registry",
      "description": "Provide a value for AWS_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "registry"
      }
    },
    "cli": "railway deploy --template registry",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "55168cb7-616f-4d72-a59b-4d88c074a0d2",
            "serializedConfig": {
              "buckets": {
                "6e721db5-9538-44a4-9073-6caa354c197a": {
                  "name": "registry-s3"
                }
              },
              "services": {
                "142d268c-9159-433a-a85b-e968aa7d5e02": {
                  "icon": "https://raw.githubusercontent.com/smolpaw/railway-registry/refs/heads/master/distribution-logo.svg",
                  "name": "registry",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/smolpaw/railway-registry",
                    "rootDirectory": null
                  },
                  "variables": {
                    "HTTP_SECRET": {
                      "isOptional": false,
                      "description": "Random string used to sign tokens internally",
                      "defaultValue": "{{HTTP_SECRET}}"
                    },
                    "AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for docker login",
                      "defaultValue": "{{AUTH_PASSWORD}}"
                    },
                    "AUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Username for docker login",
                      "defaultValue": "railway"
                    },
                    "AWS_ENDPOINT_URL": {
                      "isOptional": false,
                      "defaultValue": "${{registry-s3.ENDPOINT}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "defaultValue": "${{registry-s3.ACCESS_KEY_ID}}"
                    },
                    "AWS_DEFAULT_REGION": {
                      "isOptional": false,
                      "defaultValue": "${{registry-s3.REGION}}"
                    },
                    "AWS_S3_BUCKET_NAME": {
                      "isOptional": false,
                      "defaultValue": "${{registry-s3.BUCKET}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{registry-s3.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T12:17:18.958Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6e5975866b224999b44a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
