{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6497ae45-8014-4816-82a7-2f1d1010743b",
    "slug": "opentrader",
    "name": "Opentrader",
    "description": "Self-hosted crypto trading bot: DCA, Grid & RSI bots with web UI",
    "url": "https://railway.com/deploy/opentrader",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/opentrader"
    }
  },
  "services": [
    {
      "name": "opentrader",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/opentrader"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DATABASE_URL",
      "service": "opentrader",
      "description": "SQLite database location on the persistent /app/data volume, via the RAILWAY_VOLUME_MOUNT_PATH reference. Change only if you know what you are doing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "opentrader",
      "description": "REQUIRED. Password to log into the OpenTrader UI (email: onboarding@opentrader.pro). Auto-generated per deployment — copy the generated value from the service's Variables tab after deploy. Change it to your own to keep logins stable across redeploys.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opentrader"
      }
    },
    "cli": "railway deploy --template opentrader",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6497ae45-8014-4816-82a7-2f1d1010743b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ca52605c-cbfc-4b2a-9655-bddcacaa0f48": {
                  "icon": null,
                  "name": "opentrader",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/opentrader",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "SQLite database location on the persistent /app/data volume, via the RAILWAY_VOLUME_MOUNT_PATH reference. Change only if you know what you are doing.",
                      "defaultValue": "file:${{RAILWAY_VOLUME_MOUNT_PATH}}/opentrader.db"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "REQUIRED. Password to log into the OpenTrader UI (email: onboarding@opentrader.pro). Auto-generated per deployment — copy the generated value from the service's Variables tab after deploy. Change it to your own to keep logins stable across redeploys.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  },
                  "volumeMounts": {
                    "ca52605c-cbfc-4b2a-9655-bddcacaa0f48": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T10:14:44.639Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:39:08.841Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7aa42854ead14d7e91cc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 157,
    "typical_build_seconds": 99,
    "typical_start_seconds": 11,
    "slowest_service": "opentrader"
  }
}
