{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0bb521f8-e668-4cf6-bf2e-24395ffe8b35",
    "slug": "n8n-queue-mode-production",
    "name": "n8n (Queue Mode, Production)",
    "description": "Production n8n: queue mode, workers, Postgres, Redis, generated secrets.",
    "url": "https://railway.com/deploy/n8n-queue-mode-production",
    "upstream": {
      "image": "n8nio/n8n:2.29.11"
    }
  },
  "services": [
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:2.29.11"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7.4.9-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "n8n-worker",
      "source": {
        "image": "n8nio/n8n:2.29.11"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "n8n",
      "description": "Container timezone.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n",
      "description": "Use PostgreSQL as the n8n database.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "n8n",
      "description": "Public hostname of this n8n instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n",
      "description": "Port n8n listens on inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n",
      "description": "Public base URL used to build webhook addresses.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "n8n",
      "description": "Public protocol (Railway terminates TLS).",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "n8n runs behind Railway's proxy (1 hop).",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n",
      "description": "Run n8n in queue mode: executions are processed by worker services.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "n8n",
      "description": "Run as root so n8n (node user, uid 1000) can write its config to the Railway volume at /home/node/.n8n. Required - removing it breaks first boot with EACCES.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n",
      "description": "Default timezone for schedules and Cron nodes.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_SECURE_COOKIE",
      "service": "n8n",
      "description": "Cookies only over HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n",
      "description": "Postgres host on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n",
      "description": "Database user (from the Postgres service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Auto-generated key that encrypts stored credentials. Shared with the worker.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n",
      "description": "Base URL of the editor UI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "n8n",
      "description": "Enable task runners (required in n8n 2.x).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DB",
      "service": "n8n",
      "description": "Redis database index used by the queue.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "EXECUTIONS_DATA_PRUNE",
      "service": "n8n",
      "description": "Automatically prune old execution data to protect disk and DB size.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_TEMPLATES_ENABLED",
      "service": "n8n",
      "description": "Enable the in-app workflow templates library.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n",
      "description": "Redis host for the execution queue (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n",
      "description": "Redis port for the queue.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n",
      "description": "Database name (from the Postgres service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n",
      "description": "Database password (from the Postgres service).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_DATA_MAX_AGE",
      "service": "n8n",
      "description": "Keep execution data for 14 days (336 hours).",
      "secret": false,
      "strategy": "default",
      "default": "336"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n",
      "description": "Disable telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_HIRING_BANNER_ENABLED",
      "service": "n8n",
      "description": "Hide the n8n hiring banner.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n",
      "description": "Redis password (from the Redis service).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n",
      "description": "Expose /healthz for Railway healthchecks.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n",
      "description": "Required on Railway: enables IPv6 for Redis connections on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_PERSONALIZATION_ENABLED",
      "service": "n8n",
      "description": "Skip personalization survey on first run.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_BLOCK_ENV_ACCESS_IN_NODE",
      "service": "n8n",
      "description": "Block Code nodes from reading container env vars (they contain secrets).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "n8n",
      "description": "Seconds to wait for graceful shutdown on redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "EXECUTIONS_DATA_PRUNE_MAX_COUNT",
      "service": "n8n",
      "description": "Keep at most 10k executions.",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private-network hostname of this Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis port on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password (used by requirepass and by n8n queue connections).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "n8n-worker",
      "description": "Container timezone.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-worker",
      "description": "Use PostgreSQL as the n8n database.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n-worker",
      "description": "Public base URL of the main n8n service (used to build webhook addresses).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n-worker",
      "description": "Worker consumes executions from the queue.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n-worker",
      "description": "Default timezone for schedules and Cron nodes.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-worker",
      "description": "Postgres host on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-worker",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-worker",
      "description": "Database user (from the Postgres service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n-worker",
      "description": "MUST match the main n8n service key - referenced automatically. Never change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "n8n-worker",
      "description": "Enable task runners (required in n8n 2.x).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DB",
      "service": "n8n-worker",
      "description": "Redis database index used by the queue.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n-worker",
      "description": "Redis host for the execution queue (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n-worker",
      "description": "Redis port for the queue.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-worker",
      "description": "Database name (from the Postgres service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-worker",
      "description": "Database password (from the Postgres service).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n-worker",
      "description": "Disable telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_PORT",
      "service": "n8n-worker",
      "description": "Port for the worker healthcheck endpoint.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n-worker",
      "description": "Redis password (from the Redis service).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n-worker",
      "description": "Expose /healthz for Railway healthchecks.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n-worker",
      "description": "Required on Railway: enables IPv6 for Redis connections on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_BLOCK_ENV_ACCESS_IN_NODE",
      "service": "n8n-worker",
      "description": "Block Code nodes from reading container env vars (they contain secrets).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "n8n-worker",
      "description": "Give running executions up to 5 minutes to finish on redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Connection string used by other services over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user for n8n.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-queue-mode-production"
      }
    },
    "cli": "railway deploy --template n8n-queue-mode-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0bb521f8-e668-4cf6-bf2e-24395ffe8b35",
            "serializedConfig": {
              "services": {
                "4b13f037-791f-423f-9da1-3310ac7777fa": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "n8nio/n8n:2.29.11"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Container timezone.",
                      "defaultValue": "UTC"
                    },
                    "DB_TYPE": {
                      "description": "Use PostgreSQL as the n8n database.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "description": "Public hostname of this n8n instance.",
                      "defaultValue": "${{ RAILWAY_PUBLIC_DOMAIN }}"
                    },
                    "N8N_PORT": {
                      "description": "Port n8n listens on inside the container.",
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "description": "Public base URL used to build webhook addresses.",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}/"
                    },
                    "N8N_PROTOCOL": {
                      "description": "Public protocol (Railway terminates TLS).",
                      "defaultValue": "https"
                    },
                    "N8N_PROXY_HOPS": {
                      "description": "n8n runs behind Railway's proxy (1 hop).",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Run n8n in queue mode: executions are processed by worker services.",
                      "defaultValue": "queue"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so n8n (node user, uid 1000) can write its config to the Railway volume at /home/node/.n8n. Required - removing it breaks first boot with EACCES.",
                      "defaultValue": "0"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Default timezone for schedules and Cron nodes.",
                      "defaultValue": "UTC"
                    },
                    "N8N_SECURE_COOKIE": {
                      "description": "Cookies only over HTTPS.",
                      "defaultValue": "true"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "Postgres host on the private network.",
                      "defaultValue": "${{ Postgres.RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "Database user (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_USER }}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Auto-generated key that encrypts stored credentials. Shared with the worker.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "description": "Base URL of the editor UI.",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}/"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "description": "Enable task runners (required in n8n 2.x).",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DB": {
                      "description": "Redis database index used by the queue.",
                      "defaultValue": "0"
                    },
                    "EXECUTIONS_DATA_PRUNE": {
                      "description": "Automatically prune old execution data to protect disk and DB size.",
                      "defaultValue": "true"
                    },
                    "N8N_TEMPLATES_ENABLED": {
                      "description": "Enable the in-app workflow templates library.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis host for the execution queue (private network).",
                      "defaultValue": "${{ Redis.RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis port for the queue.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Database name (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_DB }}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "Database password (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_PASSWORD }}"
                    },
                    "EXECUTIONS_DATA_MAX_AGE": {
                      "description": "Keep execution data for 14 days (336 hours).",
                      "defaultValue": "336"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Disable telemetry.",
                      "defaultValue": "false"
                    },
                    "N8N_HIRING_BANNER_ENABLED": {
                      "description": "Hide the n8n hiring banner.",
                      "defaultValue": "false"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis password (from the Redis service).",
                      "defaultValue": "${{ Redis.REDIS_PASSWORD }}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "description": "Expose /healthz for Railway healthchecks.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Required on Railway: enables IPv6 for Redis connections on the private network.",
                      "defaultValue": "true"
                    },
                    "N8N_PERSONALIZATION_ENABLED": {
                      "description": "Skip personalization survey on first run.",
                      "defaultValue": "false"
                    },
                    "N8N_BLOCK_ENV_ACCESS_IN_NODE": {
                      "description": "Block Code nodes from reading container env vars (they contain secrets).",
                      "defaultValue": "true"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "description": "Seconds to wait for graceful shutdown on redeploys.",
                      "defaultValue": "30"
                    },
                    "EXECUTIONS_DATA_PRUNE_MAX_COUNT": {
                      "description": "Keep at most 10k executions.",
                      "defaultValue": "10000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  },
                  "volumeMounts": {
                    "4b13f037-791f-423f-9da1-3310ac7777fa": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                },
                "5626dd32-a18c-4b43-b5ec-87a107929680": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --maxmemory-policy noeviction --bind 0.0.0.0 ::'"
                  },
                  "source": {
                    "image": "redis:7.4.9-alpine"
                  },
                  "variables": {
                    "REDISHOST": {
                      "description": "Private-network hostname of this Redis service.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "description": "Redis port on the private network.",
                      "defaultValue": "6379"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Auto-generated Redis password (used by requirepass and by n8n queue connections).",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5626dd32-a18c-4b43-b5ec-87a107929680": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "7dbd822f-687c-4569-9f6c-620dde9d37bc": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n-worker",
                  "deploy": {
                    "startCommand": "n8n worker --concurrency=10",
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "n8nio/n8n:2.29.11"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Container timezone.",
                      "defaultValue": "UTC"
                    },
                    "DB_TYPE": {
                      "description": "Use PostgreSQL as the n8n database.",
                      "defaultValue": "postgresdb"
                    },
                    "WEBHOOK_URL": {
                      "description": "Public base URL of the main n8n service (used to build webhook addresses).",
                      "defaultValue": "https://${{ n8n.RAILWAY_PUBLIC_DOMAIN }}/"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Worker consumes executions from the queue.",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Default timezone for schedules and Cron nodes.",
                      "defaultValue": "UTC"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "Postgres host on the private network.",
                      "defaultValue": "${{ Postgres.RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "Database user (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_USER }}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "MUST match the main n8n service key - referenced automatically. Never change.",
                      "defaultValue": "${{ n8n.N8N_ENCRYPTION_KEY }}"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "description": "Enable task runners (required in n8n 2.x).",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DB": {
                      "description": "Redis database index used by the queue.",
                      "defaultValue": "0"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis host for the execution queue (private network).",
                      "defaultValue": "${{ Redis.RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis port for the queue.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Database name (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_DB }}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "Database password (from the Postgres service).",
                      "defaultValue": "${{ Postgres.POSTGRES_PASSWORD }}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Disable telemetry.",
                      "defaultValue": "false"
                    },
                    "QUEUE_HEALTH_CHECK_PORT": {
                      "description": "Port for the worker healthcheck endpoint.",
                      "defaultValue": "5678"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis password (from the Redis service).",
                      "defaultValue": "${{ Redis.REDIS_PASSWORD }}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "description": "Expose /healthz for Railway healthchecks.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Required on Railway: enables IPv6 for Redis connections on the private network.",
                      "defaultValue": "true"
                    },
                    "N8N_BLOCK_ENV_ACCESS_IN_NODE": {
                      "description": "Block Code nodes from reading container env vars (they contain secrets).",
                      "defaultValue": "true"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "description": "Give running executions up to 5 minutes to finish on redeploys.",
                      "defaultValue": "300"
                    }
                  }
                },
                "881b1d89-8f70-41d3-a246-7e10b935e609": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Postgres data directory inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name created on first boot.",
                      "defaultValue": "n8n"
                    },
                    "DATABASE_URL": {
                      "description": "Connection string used by other services over private networking.",
                      "defaultValue": "postgresql://${{ POSTGRES_USER }}:${{ POSTGRES_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:5432/${{ POSTGRES_DB }}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user for n8n.",
                      "defaultValue": "n8n"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "881b1d89-8f70-41d3-a246-7e10b935e609": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:16:58.687Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e79087e5d4e04eec9d1a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 0,
    "typical_start_seconds": 33,
    "slowest_service": "n8n-worker"
  }
}
