{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4baccede-38e4-435f-b0b0-2743fc297e67",
    "slug": "convex-1",
    "name": "Convex",
    "description": "Reactive backend and dashboard with persistent SQLite and HTTP actions.",
    "url": "https://railway.com/deploy/convex-1",
    "upstream": {
      "image": "ghcr.io/get-convex/convex-dashboard@sha256:4ebaebfd300c203753e5016be459a2408d1655b81beeb2b793229a6878f1ac45"
    }
  },
  "services": [
    {
      "name": "convex-dashboard",
      "source": {
        "image": "ghcr.io/get-convex/convex-dashboard@sha256:4ebaebfd300c203753e5016be459a2408d1655b81beeb2b793229a6878f1ac45"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "convex-backend",
      "source": {
        "image": "ghcr.io/get-convex/convex-backend@sha256:b756b06641d15a55b5ec0692897ce5ad3715ddccfd02e1e213621e9e764255c8"
      },
      "needs_volume": true,
      "volume_mount_path": "/convex/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "convex-dashboard",
      "description": "Container listener and public domain target port.",
      "secret": false,
      "strategy": "default",
      "default": "6791"
    },
    {
      "key": "HOSTNAME",
      "service": "convex-dashboard",
      "description": "Listen on all container IPv4 interfaces so Railway can reach the dashboard.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NEXT_PUBLIC_DEPLOYMENT_URL",
      "service": "convex-dashboard",
      "description": "Public HTTPS API origin used by the dashboard browser. Do not use a private service hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "convex-backend",
      "description": "Container listener and public domain target port.",
      "secret": false,
      "strategy": "default",
      "default": "3210"
    },
    {
      "key": "INSTANCE_NAME",
      "service": "convex-backend",
      "description": "Stable instance identity. Preserve with the volume and instance secret.",
      "secret": false,
      "strategy": "default",
      "default": "self-hosted-convex"
    },
    {
      "key": "DISABLE_BEACON",
      "service": "convex-backend",
      "description": "Disable the optional upstream telemetry beacon.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INSTANCE_SECRET",
      "service": "convex-backend",
      "description": "Generated 32-byte hexadecimal instance secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CONVEX_SITE_ORIGIN",
      "service": "convex-backend",
      "description": "Public HTTP-action origin; /http routes through the API listener on port 3210.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CONVEX_CLOUD_ORIGIN",
      "service": "convex-backend",
      "description": "Public HTTPS API origin used in generated storage URLs and callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CONVEX_SELF_HOSTED_URL",
      "service": "convex-backend",
      "description": "Public API origin for self-hosted CLI configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DISABLE_METRICS_ENDPOINT",
      "service": "convex-backend",
      "description": "Disable unauthenticated public metrics exposure.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "convex-1"
      }
    },
    "cli": "railway deploy --template convex-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4baccede-38e4-435f-b0b0-2743fc297e67",
            "serializedConfig": {
              "services": {
                "14e1a74e-583c-42df-9eb2-027086608f65": {
                  "name": "convex-dashboard",
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/get-convex/convex-dashboard@sha256:4ebaebfd300c203753e5016be459a2408d1655b81beeb2b793229a6878f1ac45"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Container listener and public domain target port.",
                      "defaultValue": "6791"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on all container IPv4 interfaces so Railway can reach the dashboard.",
                      "defaultValue": "0.0.0.0"
                    },
                    "NEXT_PUBLIC_DEPLOYMENT_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS API origin used by the dashboard browser. Do not use a private service hostname.",
                      "defaultValue": "https://${{convex-backend.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:6791": {
                        "port": 6791
                      }
                    }
                  }
                },
                "9b018056-365a-49c4-a09b-69786e0768d0": {
                  "name": "convex-backend",
                  "deploy": {
                    "healthcheckPath": "/version",
                    "requiredMountPath": "/convex/data",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/get-convex/convex-backend@sha256:b756b06641d15a55b5ec0692897ce5ad3715ddccfd02e1e213621e9e764255c8"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Container listener and public domain target port.",
                      "defaultValue": "3210"
                    },
                    "INSTANCE_NAME": {
                      "isOptional": false,
                      "description": "Stable instance identity. Preserve with the volume and instance secret.",
                      "defaultValue": "self-hosted-convex"
                    },
                    "DISABLE_BEACON": {
                      "isOptional": false,
                      "description": "Disable the optional upstream telemetry beacon.",
                      "defaultValue": "true"
                    },
                    "INSTANCE_SECRET": {
                      "isOptional": false,
                      "description": "Generated 32-byte hexadecimal instance secret. Keep private and preserve with backups.",
                      "defaultValue": "{{INSTANCE_SECRET}}"
                    },
                    "CONVEX_SITE_ORIGIN": {
                      "isOptional": false,
                      "description": "Public HTTP-action origin; /http routes through the API listener on port 3210.",
                      "defaultValue": "https://${{convex-backend.RAILWAY_PUBLIC_DOMAIN}}/http"
                    },
                    "CONVEX_CLOUD_ORIGIN": {
                      "isOptional": false,
                      "description": "Public HTTPS API origin used in generated storage URLs and callbacks.",
                      "defaultValue": "https://${{convex-backend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CONVEX_SELF_HOSTED_URL": {
                      "isOptional": false,
                      "description": "Public API origin for self-hosted CLI configuration.",
                      "defaultValue": "https://${{convex-backend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DISABLE_METRICS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Disable unauthenticated public metrics exposure.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3210": {
                        "port": 3210
                      }
                    }
                  },
                  "volumeMounts": {
                    "9b018056-365a-49c4-a09b-69786e0768d0": {
                      "mountPath": "/convex/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "convex-dashboard",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-24T04:14:44.625Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-23T22:05:05.963Z",
  "success_rate_30d": 0.2857,
  "validation": {
    "last_run_id": "run_ad5cdf26dcd642c5b5ad",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 88,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "convex-dashboard"
  }
}
