{
  "manifest_version": "1.0.0",
  "template": {
    "id": "75cb663e-8d9c-4753-9431-be8e0e7f403c",
    "slug": "celld-on-railway",
    "name": "celld-on-railway",
    "description": "celld.dev (open source impl of Durable Objects + workers) on Railway",
    "url": "https://railway.com/deploy/celld-on-railway",
    "upstream": {
      "image": "ghcr.io/denoland/celld:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "celld-node-1",
      "source": {
        "image": "ghcr.io/denoland/celld:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/celld",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AWS_REGION",
      "service": "celld-node-1",
      "description": "Region of the Railway Storage Bucket used by celld for durable state and coordination. Automatically inherited from celld-fleet-bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CELLD_WATCH",
      "service": "celld-node-1",
      "description": "Local directory used by celld for node-local state and replication working files. Keep this on the attached persistent volume.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "celld-node-1",
      "description": "S3-compatible endpoint for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CELLD_WORKERS",
      "service": "celld-node-1",
      "description": "Number of stateless Worker isolates celld can run concurrently on this node. Increase for more request concurrency; higher values use more CPU and memory.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "celld-node-1",
      "description": "Access key for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CELLD_BUCKET_NAME",
      "service": "celld-node-1",
      "description": "Name of the Railway Storage Bucket that stores celld deployments, Durable Object state, ownership records, and fleet metadata.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "celld-node-1",
      "description": "Secret access key for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "celld-on-railway"
      }
    },
    "cli": "railway deploy --template celld-on-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "75cb663e-8d9c-4753-9431-be8e0e7f403c",
            "serializedConfig": {
              "buckets": {
                "1ce4e582-d974-4ddd-8eda-ae416a5ada80": {
                  "name": "celld-fleet-bucket"
                }
              },
              "services": {
                "d26c2fa7-9bd8-4fac-8751-690dc9a19f32": {
                  "icon": "https://celld.dev/cells-mark.svg",
                  "name": "celld-node-1",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'exec /usr/local/bin/celld --bucket \"$CELLD_BUCKET_NAME\" --endpoint \"$S3_ENDPOINT\" --region \"$AWS_REGION\" --listen 0.0.0.0:8080 --internal-listen 0.0.0.0:8081 --advertise \"$RAILWAY_PRIVATE_DOMAIN:8081\"'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/denoland/celld:latest"
                  },
                  "variables": {
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Region of the Railway Storage Bucket used by celld for durable state and coordination. Automatically inherited from celld-fleet-bucket.",
                      "defaultValue": "${{celld-fleet-bucket.REGION}}"
                    },
                    "CELLD_WATCH": {
                      "isOptional": false,
                      "description": "Local directory used by celld for node-local state and replication working files. Keep this on the attached persistent volume.",
                      "defaultValue": "{{CELLD_WATCH}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
                      "defaultValue": "${{celld-fleet-bucket.ENDPOINT}}"
                    },
                    "CELLD_WORKERS": {
                      "isOptional": false,
                      "description": "Number of stateless Worker isolates celld can run concurrently on this node. Increase for more request concurrency; higher values use more CPU and memory.",
                      "defaultValue": "{{CELLD_WORKERS}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
                      "defaultValue": "${{celld-fleet-bucket.ACCESS_KEY_ID}}"
                    },
                    "CELLD_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Name of the Railway Storage Bucket that stores celld deployments, Durable Object state, ownership records, and fleet metadata.",
                      "defaultValue": "${{celld-fleet-bucket.BUCKET}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret access key for the Railway Storage Bucket used by celld. Automatically inherited from celld-fleet-bucket.",
                      "defaultValue": "${{celld-fleet-bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "d26c2fa7-9bd8-4fac-8751-690dc9a19f32": {
                      "mountPath": "/var/lib/celld"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "celld-node-1",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0"
}
