{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8254a10e-e34d-4aac-bd52-59231adb084a",
    "slug": "omniroute-2",
    "name": "OmniRoute — AI Gateway",
    "description": "Unified AI proxy. Route any LLM through one endpoint.",
    "url": "https://railway.com/deploy/omniroute-2",
    "upstream": {
      "image": "diegosouzapw/omniroute:latest"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Omniroute",
      "source": {
        "image": "diegosouzapw/omniroute:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Redis private hostname within Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis service port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias for the generated Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Omniroute",
      "description": "Railway public service port for OmniRoute",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "Omniroute",
      "description": "Canonical public OmniRoute URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "Omniroute",
      "description": "Persistent directory for SQLite database, backups, and logs",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "Omniroute",
      "description": "Listen on all container network interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "Omniroute",
      "description": "Run OmniRoute in production mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "Omniroute",
      "description": "Redis connection used for shared rate limiting and runtime state",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_SECRET",
      "service": "Omniroute",
      "description": "Secret used to sign dashboard sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "Omniroute",
      "description": "Secret used to protect gateway API keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Omniroute",
      "description": "Ensure OmniRoute can write to the Railway-mounted /app/data volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REQUIRE_API_KEY",
      "service": "Omniroute",
      "description": "Require an OmniRoute API key for /v1 gateway requests",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "Omniroute",
      "description": "Initial dashboard admin password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OMNIROUTE_MEMORY_MB",
      "service": "Omniroute",
      "description": "Maximum Node.js heap allocation in MB",
      "secret": false,
      "strategy": "default",
      "default": "2048"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "Omniroute",
      "description": "Public URL used by the dashboard",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omniroute-2"
      }
    },
    "cli": "railway deploy --template omniroute-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8254a10e-e34d-4aac-bd52-59231adb084a",
            "serializedConfig": {
              "services": {
                "1c5ff601-695d-4c43-9ba4-7b82c7ad9d02": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Redis private hostname within Railway",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis service port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias for the generated Redis password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "1c5ff601-695d-4c43-9ba4-7b82c7ad9d02": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "45161885-3368-46c6-8375-6f7493da71a7": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/omniroute.svg",
                  "name": "Omniroute",
                  "source": {
                    "image": "diegosouzapw/omniroute:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Railway public service port for OmniRoute",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "description": "Canonical public OmniRoute URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "description": "Persistent directory for SQLite database, backups, and logs",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "description": "Listen on all container network interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "description": "Run OmniRoute in production mode",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "description": "Redis connection used for shared rate limiting and runtime state",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "JWT_SECRET": {
                      "description": "Secret used to sign dashboard sessions",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "description": "Secret used to protect gateway API keys",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Ensure OmniRoute can write to the Railway-mounted /app/data volume",
                      "defaultValue": "0"
                    },
                    "REQUIRE_API_KEY": {
                      "description": "Require an OmniRoute API key for /v1 gateway requests",
                      "defaultValue": "true"
                    },
                    "INITIAL_PASSWORD": {
                      "description": "Initial dashboard admin password",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "OMNIROUTE_MEMORY_MB": {
                      "description": "Maximum Node.js heap allocation in MB",
                      "defaultValue": "2048"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "description": "Public URL used by the dashboard",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "45161885-3368-46c6-8375-6f7493da71a7": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T14:54:03.627Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6fdca4e15d96414391b2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 55,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Omniroute"
  }
}
