{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e831c78b-de72-4db1-87b3-fe5d3cdcece9",
    "slug": "FMEpOh",
    "name": "Railway Derailer",
    "description": "Derailer helps test how services handle random dependency failures",
    "url": "https://railway.com/deploy/FMEpOh",
    "upstream": {
      "repo_url": "https://github.com/PostSuite/railway-derailer"
    }
  },
  "services": [
    {
      "name": "Derailer Database",
      "source": {
        "image": "mongo:7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "Railway Derailer",
      "source": {
        "repo": "https://github.com/PostSuite/railway-derailer"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MONGOHOST",
      "service": "Derailer Database",
      "description": "Provide a value for MONGOHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "Derailer Database",
      "description": "Provide a value for MONGOPORT.",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "Derailer Database",
      "description": "Provide a value for MONGOUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "Derailer Database",
      "description": "Provide a value for MONGOPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "Derailer Database",
      "description": "Provide a value for MONGO_INITDB_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "Derailer Database",
      "description": "Provide a value for MONGO_INITDB_ROOT_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "BLAST_RADIUS",
      "service": "Railway Derailer",
      "description": "How many services to impact in each run of the Derailer",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "FREQUENCY_CRON",
      "service": "Railway Derailer",
      "description": "A Quartz chron expression defining how often to run the derailer",
      "secret": false,
      "strategy": "default",
      "default": "0 0 * * * ?"
    },
    {
      "key": "RAILWAY_API_KEY",
      "service": "Railway Derailer",
      "description": "Your railway api key (https://docs.railway.com/guides/public-api#creating-a-token)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DURATION_MINUTES",
      "service": "Railway Derailer",
      "description": "How long (in minutes) to keep deployments aborted",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "MONGODB_PASSWORD",
      "service": "Railway Derailer",
      "description": "Provide a value for MONGODB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGODB_USERNAME",
      "service": "Railway Derailer",
      "description": "Provide a value for MONGODB_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_MONGO_SERVICE_ID",
      "service": "Railway Derailer",
      "description": "Provide a value for RAILWAY_MONGO_SERVICE_ID.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGODB_CONNECTION_STRING",
      "service": "Railway Derailer",
      "description": "Mongo Connection String",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "FMEpOh"
      }
    },
    "cli": "railway deploy --template FMEpOh",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e831c78b-de72-4db1-87b3-fe5d3cdcece9",
            "serializedConfig": {
              "services": {
                "0acb0158-464a-4eee-abc2-ee1d627d2d87": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "Derailer Database",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mongo:7"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "0acb0158-464a-4eee-abc2-ee1d627d2d87": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "9540a396-ba72-45ad-81e0-6391362e9208": {
                  "icon": "https://imgproxy.attic.sh/unsafe/rs:fit:540:540:1:1/t:1:FF00FF:false:false/aHR0cHM6Ly9hdHRp/Yy5zaC9qbGZreWIx/MWwwMThnNXRqOTZ6/d3ZkMG9sMjRu.webp",
                  "name": "Railway Derailer",
                  "deploy": {
                    "startCommand": "java -jar /app/quarkus-run.jar",
                    "healthcheckPath": "q/health"
                  },
                  "source": {
                    "repo": "https://github.com/PostSuite/railway-derailer",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BLAST_RADIUS": {
                      "isOptional": false,
                      "description": "How many services to impact in each run of the Derailer",
                      "defaultValue": "2"
                    },
                    "FREQUENCY_CRON": {
                      "isOptional": false,
                      "description": "A Quartz chron expression defining how often to run the derailer",
                      "defaultValue": "0 0 * * * ?"
                    },
                    "RAILWAY_API_KEY": {
                      "isOptional": false,
                      "description": "Your railway api key (https://docs.railway.com/guides/public-api#creating-a-token)",
                      "defaultValue": "{{RAILWAY_API_KEY}}"
                    },
                    "DURATION_MINUTES": {
                      "isOptional": false,
                      "description": "How long (in minutes) to keep deployments aborted",
                      "defaultValue": "10"
                    },
                    "MONGODB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{Derailer Database.MONGOPASSWORD}}"
                    },
                    "MONGODB_USERNAME": {
                      "isOptional": false,
                      "defaultValue": "${{Derailer Database.MONGOUSER}}"
                    },
                    "RAILWAY_MONGO_SERVICE_ID": {
                      "isOptional": false,
                      "defaultValue": "${{Derailer Database.RAILWAY_SERVICE_ID}}"
                    },
                    "MONGODB_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "Mongo Connection String",
                      "defaultValue": "mongodb://${{Derailer Database.RAILWAY_PRIVATE_DOMAIN}}:27017"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Railway Derailer",
      "method": "GET",
      "path": "q/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T01:49:32.375Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_73405f8b386444a09095",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Repository \"PostSuite/railway-derailer\" not found or is not accessible"
      }
    ]
  }
}
