{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d66101fd-8a28-4bf2-bd95-c58959495e3f",
    "slug": "n8n-cheapest-to-run",
    "name": "N8N (cheapest to run, just updated!)",
    "description": "Flexible AI workflow automation for technical teams.",
    "url": "https://railway.com/deploy/n8n-cheapest-to-run",
    "upstream": {
      "image": "n8nio/n8n:1.121.3"
    }
  },
  "services": [
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:1.121.3"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.n8n/",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "n8n",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_HOST",
      "service": "n8n",
      "description": "Provide a value for N8N_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n",
      "description": "Provide a value for N8N_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n",
      "description": "Provide a value for WEBHOOK_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "Provide a value for N8N_PROXY_HOPS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "n8n",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Provide a value for N8N_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_SQLITE_POOL_SIZE",
      "service": "n8n",
      "description": "Provide a value for DB_SQLITE_POOL_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-cheapest-to-run"
      }
    },
    "cli": "railway deploy --template n8n-cheapest-to-run",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d66101fd-8a28-4bf2-bd95-c58959495e3f",
            "serializedConfig": {
              "services": {
                "ff46b2e9-aad6-4fd2-96ff-3a31fa6cc076": {
                  "icon": "https://devicons.railway.app/n8n?variant=light",
                  "name": "n8n",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "n8nio/n8n:1.121.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "5678"
                    },
                    "N8N_HOST": {
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PORT": {
                      "isOptional": false,
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PROXY_HOPS": {
                      "defaultValue": "1"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "DB_SQLITE_POOL_SIZE": {
                      "defaultValue": "4"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ff46b2e9-aad6-4fd2-96ff-3a31fa6cc076": {
                      "mountPath": "/root/.n8n/"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "n8n",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T03:04:14.164Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a7697833090a45189dfb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 45,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "n8n"
  }
}
