{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8d9714c8-b47b-464e-88be-eeb3208f09c5",
    "slug": "railway-n8n",
    "name": "n8n",
    "description": "n8n — workflow automation with 400+ integrations, Zapier alternative",
    "url": "https://railway.com/deploy/railway-n8n",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-n8n"
    }
  },
  "services": [
    {
      "name": "railway-n8n",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-n8n"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "N8N_PORT",
      "service": "railway-n8n",
      "description": "Port n8n listens on (default: 5678, Railway auto-assigns)",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "NODE_ENV",
      "service": "railway-n8n",
      "description": "Node.js environment (production for deploy)",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "railway-n8n",
      "description": "Timezone for schedule-triggered nodes, e.g. America/New_York",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "railway-n8n",
      "description": "Encrypts credentials stored in workflows. Set once and never change.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_BASIC_AUTH_ACTIVE",
      "service": "railway-n8n",
      "description": "Enable HTTP basic auth on the n8n UI",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railway-n8n"
      }
    },
    "cli": "railway deploy --template railway-n8n",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8d9714c8-b47b-464e-88be-eeb3208f09c5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "98d534d5-f11d-43d1-8b9d-487ec5a363fd": {
                  "icon": null,
                  "name": "railway-n8n",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-n8n",
                    "rootDirectory": null
                  },
                  "variables": {
                    "N8N_PORT": {
                      "isOptional": true,
                      "description": "Port n8n listens on (default: 5678, Railway auto-assigns)",
                      "defaultValue": "5678"
                    },
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Node.js environment (production for deploy)",
                      "defaultValue": "production"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Timezone for schedule-triggered nodes, e.g. America/New_York",
                      "defaultValue": "UTC"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts credentials stored in workflows. Set once and never change.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_BASIC_AUTH_ACTIVE": {
                      "isOptional": true,
                      "description": "Enable HTTP basic auth on the n8n UI",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "98d534d5-f11d-43d1-8b9d-487ec5a363fd": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T07:58:31.315Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_cf8bfb1cdb9c47a0a199",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 136,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "railway-n8n"
  }
}
