{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ada71ac8-8b68-4cc5-9d72-2adee7d1c377",
    "slug": "n8n-pro-stack-production-automation-with",
    "name": "n8n Pro Stack — Production Automation with Workers",
    "description": "Deploy n8n with Worker, Task Runner, Redis & PostgreSQL—ready to scale.",
    "url": "https://railway.com/deploy/n8n-pro-stack-production-automation-with",
    "upstream": {
      "image": "n8nio/n8n"
    }
  },
  "services": [
    {
      "name": "n8n-runner",
      "source": {
        "image": "n8nio/runners"
      },
      "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
    },
    {
      "name": "n8n-primary",
      "source": {
        "image": "n8nio/n8n"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "n8n-worker",
      "source": {
        "image": "n8nio/n8n"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "railwayapp/redis"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n-runner",
      "description": "Shared authentication token used by the task runner to connect securely to the n8n Worker.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_TASK_BROKER_URI",
      "service": "n8n-runner",
      "description": "Private task-broker endpoint exposed by the n8n Worker on port 5679.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT",
      "service": "n8n-runner",
      "description": "Keeps the external task runner active while idle; zero disables automatic shutdown.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory inside the persistent Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database name used by n8n for workflows, credentials, and execution data.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL user created for the n8n application services.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Automatically generated PostgreSQL password shared through private service references.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "n8n-primary",
      "description": "Public HTTP port used by the n8n editor, API, and webhook server.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-primary",
      "description": "Selects PostgreSQL as the persistent database backend for n8n.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n-primary",
      "description": "Trusts Railway's reverse proxy when resolving public request information.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n-primary",
      "description": "Sends workflow executions through Redis to the dedicated Worker service.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "n8n-primary",
      "description": "Public HTTPS base URL used when n8n generates production webhook links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n-primary",
      "description": "Uses the external task-runner service for isolated Code node execution.",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-primary",
      "description": "Private PostgreSQL hostname supplied automatically by the database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-primary",
      "description": "Internal PostgreSQL port used by n8n services.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-primary",
      "description": "PostgreSQL application user shared by the database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n-primary",
      "description": "Generated key used to encrypt n8n credentials; keep it unchanged after deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "n8n-primary",
      "description": "Binds n8n to all container network interfaces inside Railway.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n-primary",
      "description": "Public base URL used by the n8n editor and browser-facing links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n-primary",
      "description": "Private Redis hostname used for the workflow execution queue.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n-primary",
      "description": "Internal Redis port used by the queue connection.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-primary",
      "description": "PostgreSQL database that stores n8n application data.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-primary",
      "description": "Database password referenced securely from the PostgreSQL service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n-primary",
      "description": "Generated token available to authenticate external task runners.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n-primary",
      "description": "Redis password referenced securely from the Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n-primary",
      "description": "Enables reliable Redis resolution across Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n-primary",
      "description": "Stores binary execution data in the shared PostgreSQL database for queue mode.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "n8n-primary",
      "description": "Allows active executions time to finish during graceful shutdown.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "n8n-primary",
      "description": "Routes manual workflow runs to the dedicated Worker service as well.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n-primary",
      "description": "Enforces secure permissions for n8n settings files inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "n8n-worker",
      "description": "Internal HTTP port used by the n8n Worker health endpoint.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-worker",
      "description": "Selects PostgreSQL as the persistent database backend for the Worker.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n-worker",
      "description": "Processes workflow jobs received through the Redis execution queue.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n-worker",
      "description": "Uses the external task-runner service for isolated Code node execution.",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-worker",
      "description": "Private PostgreSQL hostname supplied automatically by the database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-worker",
      "description": "Internal PostgreSQL port used by the Worker.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-worker",
      "description": "PostgreSQL application user shared by the database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n-worker",
      "description": "Uses the Primary service encryption key so all credentials remain readable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "n8n-worker",
      "description": "Binds the Worker service to all container network interfaces.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n-worker",
      "description": "Private Redis hostname used to receive queued workflow jobs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n-worker",
      "description": "Internal Redis port used by the Worker queue connection.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-worker",
      "description": "PostgreSQL database that stores n8n application and execution data.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-worker",
      "description": "Database password referenced securely from the PostgreSQL service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n-worker",
      "description": "Generated token shared with the external task runner for authentication.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n-worker",
      "description": "Redis password referenced securely from the Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n-worker",
      "description": "Exposes the Worker readiness endpoint used by Railway health checks.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n-worker",
      "description": "Enables reliable Redis resolution across Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n-worker",
      "description": "Stores binary execution data in PostgreSQL for queue-mode compatibility.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "n8n-worker",
      "description": "Allows active workflow executions time to finish during shutdown.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "N8N_RUNNERS_BROKER_LISTEN_ADDRESS",
      "service": "n8n-worker",
      "description": "Makes the Worker's task broker reachable by the private Runner service.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "n8n-worker",
      "description": "Ensures manual workflow tests use the same production Worker path.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n-worker",
      "description": "Enforces secure permissions for n8n settings files inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "redis",
      "description": "Private Redis hostname used by the n8n Primary and Worker services.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "redis",
      "description": "Internal Redis port used for queued workflow execution.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "redis",
      "description": "Redis username used by the n8n queue connection.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Automatically generated Redis password shared through private service references.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-pro-stack-production-automation-with"
      }
    },
    "cli": "railway deploy --template n8n-pro-stack-production-automation-with",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ada71ac8-8b68-4cc5-9d72-2adee7d1c377",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0b53042e-ca41-4cc1-8f25-87acd40a89c2": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n-runner",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/runners"
                  },
                  "variables": {
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Shared authentication token used by the task runner to connect securely to the n8n Worker.",
                      "defaultValue": "${{n8n-worker.N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_TASK_BROKER_URI": {
                      "isOptional": false,
                      "description": "Private task-broker endpoint exposed by the n8n Worker on port 5679.",
                      "defaultValue": "http://${{n8n-worker.RAILWAY_PRIVATE_DOMAIN}}:5679"
                    },
                    "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Keeps the external task runner active while idle; zero disables automatic shutdown.",
                      "defaultValue": "0"
                    }
                  }
                },
                "23b4900a-11a6-40b7-833e-ffce5356619c": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory inside the persistent Railway volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name used by n8n for workflows, credentials, and execution data.",
                      "defaultValue": "n8n"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL user created for the n8n application services.",
                      "defaultValue": "n8n"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Automatically generated PostgreSQL password shared through private service references.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "23b4900a-11a6-40b7-833e-ffce5356619c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "3e9e0759-a5cf-4cf0-8200-f6506d628a77": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n-primary",
                  "deploy": {
                    "startCommand": "n8n start",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public HTTP port used by the n8n editor, API, and webhook server.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Selects PostgreSQL as the persistent database backend for n8n.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": false,
                      "description": "Trusts Railway's reverse proxy when resolving public request information.",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Sends workflow executions through Redis to the dedicated Worker service.",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS base URL used when n8n generates production webhook links.",
                      "defaultValue": "https://${{n8n-primary.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_RUNNERS_MODE": {
                      "isOptional": false,
                      "description": "Uses the external task-runner service for isolated Code node execution.",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "Private PostgreSQL hostname supplied automatically by the database service.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL port used by n8n services.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL application user shared by the database service.",
                      "defaultValue": "${{postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated key used to encrypt n8n credentials; keep it unchanged after deployment.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Binds n8n to all container network interfaces inside Railway.",
                      "defaultValue": "0.0.0.0"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "isOptional": false,
                      "description": "Public base URL used by the n8n editor and browser-facing links.",
                      "defaultValue": "https://${{n8n-primary.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Private Redis hostname used for the workflow execution queue.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Internal Redis port used by the queue connection.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "PostgreSQL database that stores n8n application data.",
                      "defaultValue": "${{postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password referenced securely from the PostgreSQL service.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Generated token available to authenticate external task runners.",
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password referenced securely from the Redis service.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": false,
                      "description": "Enables reliable Redis resolution across Railway's private network.",
                      "defaultValue": "true"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": false,
                      "description": "Stores binary execution data in the shared PostgreSQL database for queue mode.",
                      "defaultValue": "database"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Allows active executions time to finish during graceful shutdown.",
                      "defaultValue": "60"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "isOptional": false,
                      "description": "Routes manual workflow runs to the dedicated Worker service as well.",
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": false,
                      "description": "Enforces secure permissions for n8n settings files inside the container.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  }
                },
                "897d48e2-1c82-4537-bdaa-04e74f6d64d0": {
                  "icon": "https://devicons.railway.com/i/n8n.svg",
                  "name": "n8n-worker",
                  "deploy": {
                    "startCommand": "n8n worker --concurrency=5",
                    "healthcheckPath": "/healthz/readiness",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal HTTP port used by the n8n Worker health endpoint.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Selects PostgreSQL as the persistent database backend for the Worker.",
                      "defaultValue": "postgresdb"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Processes workflow jobs received through the Redis execution queue.",
                      "defaultValue": "queue"
                    },
                    "N8N_RUNNERS_MODE": {
                      "isOptional": false,
                      "description": "Uses the external task-runner service for isolated Code node execution.",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "Private PostgreSQL hostname supplied automatically by the database service.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL port used by the Worker.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL application user shared by the database service.",
                      "defaultValue": "${{postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Uses the Primary service encryption key so all credentials remain readable.",
                      "defaultValue": "${{n8n-primary.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Binds the Worker service to all container network interfaces.",
                      "defaultValue": "0.0.0.0"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Private Redis hostname used to receive queued workflow jobs.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Internal Redis port used by the Worker queue connection.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "PostgreSQL database that stores n8n application and execution data.",
                      "defaultValue": "${{postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password referenced securely from the PostgreSQL service.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Generated token shared with the external task runner for authentication.",
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password referenced securely from the Redis service.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "isOptional": false,
                      "description": "Exposes the Worker readiness endpoint used by Railway health checks.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": false,
                      "description": "Enables reliable Redis resolution across Railway's private network.",
                      "defaultValue": "true"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": false,
                      "description": "Stores binary execution data in PostgreSQL for queue-mode compatibility.",
                      "defaultValue": "database"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Allows active workflow executions time to finish during shutdown.",
                      "defaultValue": "60"
                    },
                    "N8N_RUNNERS_BROKER_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Makes the Worker's task broker reachable by the private Runner service.",
                      "defaultValue": "0.0.0.0"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "isOptional": false,
                      "description": "Ensures manual workflow tests use the same production Worker path.",
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": false,
                      "description": "Enforces secure permissions for n8n settings files inside the container.",
                      "defaultValue": "true"
                    }
                  }
                },
                "bea0a5ef-fb23-456a-b51b-a75dfcf530cb": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "railwayapp/redis"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private Redis hostname used by the n8n Primary and Worker services.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Internal Redis port used for queued workflow execution.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username used by the n8n queue connection.",
                      "defaultValue": "default"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Automatically generated Redis password shared through private service references.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "n8n-primary",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T22:14:39.753Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T21:24:43.184Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_00238e15677240378cf5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "n8n-runner"
  }
}
