{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b616d832-0de9-4e5c-ad7d-0e45ce48ab2e",
    "slug": "n8n-7",
    "name": "N8N",
    "description": "n8n on SQLite in a single service with a volume. Cheapest to run.",
    "url": "https://railway.com/deploy/n8n-7",
    "upstream": {
      "image": "n8nio/n8n:2.40.7"
    }
  },
  "services": [
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:2.40.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "n8n",
      "description": "Port n8n listens on. Railway's healthcheck and domain use it.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "Proxy hops in front of n8n (Railway's edge adds two), so rate limits see real client IPs.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "n8n",
      "description": "Public base URL shown for webhook, form and MCP trigger URLs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "n8n",
      "description": "Starts as root to chown the volume; n8n itself then runs as the node user.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n",
      "description": "Timezone for Schedule triggers and dates, e.g. Europe/Berlin.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Encrypts stored credentials. Generated per deploy; back it up.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_SQLITE_POOL_SIZE",
      "service": "n8n",
      "description": "SQLite read connections; above 0 turns on WAL mode.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n",
      "description": "Public URL of the editor, used in links, emails and OAuth redirects.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EXECUTIONS_DATA_MAX_AGE",
      "service": "n8n",
      "description": "Hours to keep execution history before pruning (336 = 14 days).",
      "secret": false,
      "strategy": "default",
      "default": "336"
    },
    {
      "key": "EXECUTIONS_DATA_PRUNE_MAX_COUNT",
      "service": "n8n",
      "description": "Most executions to keep in history. 0 means no limit.",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-7"
      }
    },
    "cli": "railway deploy --template n8n-7",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b616d832-0de9-4e5c-ad7d-0e45ce48ab2e",
            "serializedConfig": {
              "services": {
                "c8048e58-a549-44f9-8c55-1223c21996b2": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n",
                  "deploy": {
                    "startCommand": "sh -c 'test \"$(stat -c %U /home/node/.n8n)\" = node || chown -R node:node /home/node/.n8n; export HOME=/home/node; exec su -p -s /bin/sh node -c \"exec /sbin/tini -- /docker-entrypoint.sh\"'",
                    "healthcheckPath": "/healthz/readiness",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "image": "n8nio/n8n:2.40.7"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port n8n listens on. Railway's healthcheck and domain use it.",
                      "defaultValue": "5678"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": false,
                      "description": "Proxy hops in front of n8n (Railway's edge adds two), so rate limits see real client IPs.",
                      "defaultValue": "2"
                    },
                    "N8N_WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Public base URL shown for webhook, form and MCP trigger URLs.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Starts as root to chown the volume; n8n itself then runs as the node user.",
                      "defaultValue": "0"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone for Schedule triggers and dates, e.g. Europe/Berlin.",
                      "defaultValue": "UTC"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored credentials. Generated per deploy; back it up.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "DB_SQLITE_POOL_SIZE": {
                      "isOptional": false,
                      "description": "SQLite read connections; above 0 turns on WAL mode.",
                      "defaultValue": "2"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of the editor, used in links, emails and OAuth redirects.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EXECUTIONS_DATA_MAX_AGE": {
                      "isOptional": false,
                      "description": "Hours to keep execution history before pruning (336 = 14 days).",
                      "defaultValue": "336"
                    },
                    "EXECUTIONS_DATA_PRUNE_MAX_COUNT": {
                      "isOptional": false,
                      "description": "Most executions to keep in history. 0 means no limit.",
                      "defaultValue": "10000"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 5678
                      }
                    }
                  },
                  "volumeMounts": {
                    "c8048e58-a549-44f9-8c55-1223c21996b2": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "n8n",
      "method": "GET",
      "path": "/healthz/readiness",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T16:14:54.488Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-25T12:42:43.578Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6c799799f64741f8acba",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "n8n"
  }
}
