{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2853895f-63ba-4847-846e-96fe06027c1a",
    "slug": "locomotive",
    "name": "Locomotive",
    "description": "Log drains for Railway - forwards logs to observability platforms",
    "url": "https://railway.com/deploy/locomotive",
    "upstream": {
      "image": "ghcr.io/brody192/locomotive:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Locomotive",
      "source": {
        "image": "ghcr.io/brody192/locomotive:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LOCOMOTIVE_SERVICE_IDS",
      "service": "Locomotive",
      "description": "Single Service ID or list of Service IDs. These will be the services to ship logs from.  Delimited by commas.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LOCOMOTIVE_WEBHOOK_URL",
      "service": "Locomotive",
      "description": "The destination of the logs. See the [overview](https://railway.com/deploy/locomotive) for platform examples.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LOCOMOTIVE_WEBHOOK_MODE",
      "service": "Locomotive",
      "description": "The mode to run Locomotive in defines the format used for sending the webhook to the target URL. See the [overview](https://railway.com/deploy/locomotive) for available modes.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LOCOMOTIVE_ENVIRONMENT_ID",
      "service": "Locomotive",
      "description": "By default, this is a reference to the environment ID that Locomotive is deployed into.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOCOMOTIVE_RAILWAY_API_KEY",
      "service": "Locomotive",
      "description": "Account scoped API token.  Project and Workspace tokens will not work",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LOCOMOTIVE_ENABLE_HTTP_LOGS",
      "service": "Locomotive",
      "description": "Enable shipping HTTP logs; disabled by default.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOCOMOTIVE_ENABLE_DEPLOY_LOGS",
      "service": "Locomotive",
      "description": "Enable shipping deploy logs; enabled by default.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LOCOMOTIVE_REPORT_STATUS_EVERY",
      "service": "Locomotive",
      "description": "How often Locomotive will report how many deploy and/or http logs it has shipped.",
      "secret": false,
      "strategy": "default",
      "default": "1m"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "locomotive"
      }
    },
    "cli": "railway deploy --template locomotive",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2853895f-63ba-4847-846e-96fe06027c1a",
            "serializedConfig": {
              "services": {
                "9f083960-9af2-4259-8d39-94ae41ee084d": {
                  "icon": "https://devicons.railway.com/i/railway-light.svg",
                  "name": "Locomotive",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/brody192/locomotive:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 1,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 2,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 3,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 4,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 5,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 6,
                          "endHour": 24,
                          "startHour": 0
                        }
                      ]
                    }
                  },
                  "variables": {
                    "LOCOMOTIVE_SERVICE_IDS": {
                      "isOptional": false,
                      "description": "Single Service ID or list of Service IDs. These will be the services to ship logs from.  Delimited by commas.",
                      "defaultValue": "{{LOCOMOTIVE_SERVICE_IDS}}"
                    },
                    "LOCOMOTIVE_WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "The destination of the logs. See the [overview](https://railway.com/deploy/locomotive) for platform examples.",
                      "defaultValue": "{{LOCOMOTIVE_WEBHOOK_URL}}"
                    },
                    "LOCOMOTIVE_WEBHOOK_MODE": {
                      "isOptional": false,
                      "description": "The mode to run Locomotive in defines the format used for sending the webhook to the target URL. See the [overview](https://railway.com/deploy/locomotive) for available modes.",
                      "defaultValue": "{{LOCOMOTIVE_WEBHOOK_MODE}}"
                    },
                    "LOCOMOTIVE_ENVIRONMENT_ID": {
                      "isOptional": false,
                      "description": "By default, this is a reference to the environment ID that Locomotive is deployed into.",
                      "defaultValue": "${{RAILWAY_ENVIRONMENT_ID}}"
                    },
                    "LOCOMOTIVE_RAILWAY_API_KEY": {
                      "isOptional": false,
                      "description": "Account scoped API token.  Project and Workspace tokens will not work",
                      "defaultValue": "{{LOCOMOTIVE_RAILWAY_API_KEY}}"
                    },
                    "LOCOMOTIVE_ENABLE_HTTP_LOGS": {
                      "isOptional": false,
                      "description": "Enable shipping HTTP logs; disabled by default.",
                      "defaultValue": "false"
                    },
                    "LOCOMOTIVE_ADDITIONAL_HEADERS": {
                      "isOptional": true,
                      "description": "A way to add authentication or any additional headers needed to the underlying HTTP request.  See the [overview](https://railway.com/deploy/locomotive) for usage examples.",
                      "defaultValue": ""
                    },
                    "LOCOMOTIVE_ENABLE_DEPLOY_LOGS": {
                      "isOptional": false,
                      "description": "Enable shipping deploy logs; enabled by default.",
                      "defaultValue": "true"
                    },
                    "LOCOMOTIVE_REPORT_STATUS_EVERY": {
                      "isOptional": false,
                      "description": "How often Locomotive will report how many deploy and/or http logs it has shipped.",
                      "defaultValue": "1m"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
