{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f72cb03f-5b72-4eaa-a280-f29e1145b40c",
    "slug": "octobot",
    "name": "OctoBot",
    "description": "Trading bot that runs crypto strategies on your exchange accounts",
    "url": "https://railway.com/deploy/octobot",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/octobot-railway"
    }
  },
  "services": [
    {
      "name": "octobot",
      "source": {
        "repo": "https://github.com/gridalpha/octobot-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/octobot/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "octobot",
      "description": "Web interface port and healthcheck target",
      "secret": false,
      "strategy": "default",
      "default": "5001"
    },
    {
      "key": "OCTOBOT_WEB_PASSWORD",
      "service": "octobot",
      "description": "Web dashboard password, required",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "octobot",
      "description": "First boot installs tentacles",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "octobot",
      "description": "Clean shutdown for SQLite writes",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "octobot"
      }
    },
    "cli": "railway deploy --template octobot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f72cb03f-5b72-4eaa-a280-f29e1145b40c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ca6da5e6-c40f-40bb-a6f5-51f1f5d69baa": {
                  "icon": "https://media.githubusercontent.com/media/Drakkar-Software/OctoBot/master/docs/static/img/logo-dark-512.png",
                  "name": "octobot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/login",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/octobot-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web interface port and healthcheck target",
                      "defaultValue": "5001"
                    },
                    "OCTOBOT_WEB_PASSWORD": {
                      "isOptional": false,
                      "description": "Web dashboard password, required",
                      "defaultValue": "{{OCTOBOT_WEB_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot installs tentacles",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown for SQLite writes",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5001": {
                        "port": 5001
                      }
                    }
                  },
                  "volumeMounts": {
                    "ca6da5e6-c40f-40bb-a6f5-51f1f5d69baa": {
                      "mountPath": "/octobot/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "octobot",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T07:22:03.692Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_25b3d48414e84e329223",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 132,
    "typical_build_seconds": 31,
    "typical_start_seconds": 20,
    "slowest_service": "octobot"
  }
}
