{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f072792-a1d5-4527-9571-12067754dcdc",
    "slug": "openterminal",
    "name": "OpenTerminal",
    "description": "Market dashboard with charts, news, crypto, and portfolio tracking",
    "url": "https://railway.com/deploy/openterminal",
    "upstream": {
      "image": "xiaosong233/openterminal-railway:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "app",
      "source": {
        "image": "xiaosong233/openterminal-railway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "app",
      "description": "Public web listener and Railway routing port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_KEY",
      "service": "app",
      "description": "Generated server-to-server secret; does not add dashboard login.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_URL",
      "service": "app",
      "description": "Internal upstream URL used by the web proxy.",
      "secret": false,
      "strategy": "default",
      "default": "http://127.0.0.1:4000"
    },
    {
      "key": "API_HOST",
      "service": "app",
      "description": "Keep Express private inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "API_PORT",
      "service": "app",
      "description": "Separate internal API port.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "DATA_DIR",
      "service": "app",
      "description": "SQLite directory on the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "app",
      "description": "Bind Next.js to all container interfaces.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "WEB_ORIGIN",
      "service": "app",
      "description": "Public web origin allowed by Express CORS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUST_PROXY",
      "service": "app",
      "description": "Leave disabled unless running an explicitly trusted reverse proxy.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openterminal"
      }
    },
    "cli": "railway deploy --template openterminal",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f072792-a1d5-4527-9571-12067754dcdc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8c51bf35-7071-441a-a034-53c17f5988de": {
                  "icon": null,
                  "name": "app",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "image": "xiaosong233/openterminal-railway:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public web listener and Railway routing port.",
                      "defaultValue": "3000"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "description": "Generated server-to-server secret; does not add dashboard login.",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "Internal upstream URL used by the web proxy.",
                      "defaultValue": "http://127.0.0.1:4000"
                    },
                    "API_HOST": {
                      "isOptional": false,
                      "description": "Keep Express private inside the container.",
                      "defaultValue": "127.0.0.1"
                    },
                    "API_PORT": {
                      "isOptional": false,
                      "description": "Separate internal API port.",
                      "defaultValue": "4000"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "SQLite directory on the persistent volume.",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind Next.js to all container interfaces.",
                      "defaultValue": "0.0.0.0"
                    },
                    "WEB_ORIGIN": {
                      "isOptional": false,
                      "description": "Public web origin allowed by Express CORS.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Leave disabled unless running an explicitly trusted reverse proxy.",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "8c51bf35-7071-441a-a034-53c17f5988de": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "app",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-23T04:14:45.184Z",
  "generator_version": "0.1.0"
}
