{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aa80c0e9-c5cd-4d58-8429-85b590e4c2ae",
    "slug": "n8n-v3",
    "name": "n8n v3",
    "description": "A scalable n8n 3.0 setup with dedicated workers, runners, and webhooks.",
    "url": "https://railway.com/deploy/n8n-v3",
    "upstream": {
      "image": "n8nio/n8n:v3-nightly"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Webhook Processor",
      "source": {
        "image": "n8nio/n8n:v3-nightly"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Worker",
      "source": {
        "image": "n8nio/n8n:v3-nightly"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Task Runner",
      "source": {
        "image": "n8nio/n8n:v3-nightly"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Main",
      "source": {
        "image": "n8nio/n8n:v3-nightly"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Webhook Processor",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_TYPE",
      "service": "Webhook Processor",
      "description": "Use PostgreSQL as the shared n8n database",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_PORT",
      "service": "Webhook Processor",
      "description": "HTTP port for production webhook requests",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "Webhook Processor",
      "description": "Trust one Railway reverse proxy",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Webhook Processor",
      "description": "Queue webhook-triggered executions through Redis",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "Webhook Processor",
      "description": "Public production webhook base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "Webhook Processor",
      "description": "Default workflow timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "Webhook Processor",
      "description": "Disable deprecated internal task runner mode",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Webhook Processor",
      "description": "PostgreSQL private host from Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Webhook Processor",
      "description": "PostgreSQL connection port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Webhook Processor",
      "description": "PostgreSQL database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Webhook Processor",
      "description": "Reuse the Main encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "Webhook Processor",
      "description": "Listen on IPv6 interfaces for Railway networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Webhook Processor",
      "description": "Redis private host from Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Webhook Processor",
      "description": "Redis connection port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Webhook Processor",
      "description": "Shared n8n database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Webhook Processor",
      "description": "PostgreSQL database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "Webhook Processor",
      "description": "Disable anonymous diagnostic telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "Webhook Processor",
      "description": "Redis authentication password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "Webhook Processor",
      "description": "Redis authentication username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "Webhook Processor",
      "description": "Use database-backed binary data storage for queue compatibility",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "Webhook Processor",
      "description": "Enforce secure permissions on n8n settings files",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TZ",
      "service": "Worker",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_TYPE",
      "service": "Worker",
      "description": "Use PostgreSQL as the shared n8n database",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Worker",
      "description": "Process workflows from the Redis queue",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "Worker",
      "description": "Default workflow timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "Worker",
      "description": "Use the dedicated external Task Runner",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Worker",
      "description": "PostgreSQL private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Worker",
      "description": "PostgreSQL port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Worker",
      "description": "PostgreSQL username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Worker",
      "description": "Reuse the Main encryption key for credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Worker",
      "description": "Redis private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Worker",
      "description": "Redis connection port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Worker",
      "description": "Shared n8n database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Worker",
      "description": "PostgreSQL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "Worker",
      "description": "Generate a shared Worker-to-Runner authentication token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_RUNNERS_BROKER_PORT",
      "service": "Worker",
      "description": "Private task broker port",
      "secret": false,
      "strategy": "default",
      "default": "5679"
    },
    {
      "key": "N8N_NATIVE_PYTHON_RUNNER",
      "service": "Worker",
      "description": "Enable native Python execution in Code nodes",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "Worker",
      "description": "Redis authentication password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "Worker",
      "description": "Redis authentication username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "Worker",
      "description": "Enable Worker health and readiness endpoints",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "Worker",
      "description": "Allow in-progress jobs time to finish during shutdown",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "N8N_RUNNERS_BROKER_LISTEN_ADDRESS",
      "service": "Worker",
      "description": "Listen on IPv6 and compatible network interfaces",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "Worker",
      "description": "Enforce secure settings file permissions",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Redis hostname on Railway private networking",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Default Redis TCP port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis ACL username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Full Redis connection string using Railway private networking",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Compatibility alias exposing the Redis password under the REDISPASSWORD variable",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated 32-character Redis password using alphabetic characters",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "Task Runner",
      "description": "Set the container timezone to UTC",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "Task Runner",
      "description": "Match the default timezone of the n8n instances",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "Task Runner",
      "description": "Authenticate using the shared Worker task broker token",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_MAX_PAYLOAD",
      "service": "Task Runner",
      "description": "Maximum task payload size of 1 GiB",
      "secret": false,
      "strategy": "default",
      "default": "1073741824"
    },
    {
      "key": "N8N_RUNNERS_MAX_CONCURRENCY",
      "service": "Task Runner",
      "description": "Allow up to five concurrent Code node tasks per runner",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "N8N_RUNNERS_TASK_BROKER_URI",
      "service": "Task Runner",
      "description": "Connect to the Worker task broker through Railway private networking",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT",
      "service": "Task Runner",
      "description": "Shut down idle runner processes after 15 seconds",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "N8N_RUNNERS_LAUNCHER_HEALTH_CHECK_PORT",
      "service": "Task Runner",
      "description": "Internal health-check server port",
      "secret": false,
      "strategy": "default",
      "default": "5680"
    },
    {
      "key": "TZ",
      "service": "Main",
      "description": "Container operating system timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_TYPE",
      "service": "Main",
      "description": "Use PostgreSQL as the primary n8n database",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_PORT",
      "service": "Main",
      "description": "Port for n8n Editor and REST API",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "Main",
      "description": "Trust the Railway reverse proxy",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Main",
      "description": "Use Redis-backed workflow execution queue",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "Main",
      "description": "Public base URL for production webhooks",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Main",
      "description": "Run as root to access the Railway-mounted volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "Main",
      "description": "Default timezone used by n8n workflows",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "Main",
      "description": "Disable deprecated internal task runner mode",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Main",
      "description": "PostgreSQL private host from Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Main",
      "description": "PostgreSQL connection port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Main",
      "description": "PostgreSQL database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Main",
      "description": "Generate one shared encryption key for Main, Worker, and Webhook",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "Main",
      "description": "Listen on IPv6 interfaces for Railway networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "Main",
      "description": "Public URL of the n8n Editor",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EXECUTIONS_DATA_PRUNE",
      "service": "Main",
      "description": "Enable automatic cleanup of saved executions",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Main",
      "description": "Redis private host from Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Main",
      "description": "Redis connection port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Main",
      "description": "PostgreSQL database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Main",
      "description": "PostgreSQL database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_DATA_MAX_AGE",
      "service": "Main",
      "description": "Retain execution data for up to seven days",
      "secret": false,
      "strategy": "default",
      "default": "168"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "Main",
      "description": "Disable anonymous diagnostic telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "Main",
      "description": "Redis authentication password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "Main",
      "description": "Redis authentication username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "Main",
      "description": "Store persistent binary data in PostgreSQL for queue compatibility",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "N8N_DISABLE_PRODUCTION_MAIN_PROCESS",
      "service": "Main",
      "description": "Disable production webhook handling on Main",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "Main",
      "description": "Enforce secure n8n settings file permissions",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-v3"
      }
    },
    "cli": "railway deploy --template n8n-v3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aa80c0e9-c5cd-4d58-8429-85b590e4c2ae",
            "serializedConfig": {
              "services": {
                "1d6e7fe2-3a01-4fc5-afcd-f99d107520f4": {
                  "icon": "https://devicons.railway.app/n8n",
                  "name": "Webhook Processor",
                  "deploy": {
                    "startCommand": "n8n webhook"
                  },
                  "source": {
                    "image": "n8nio/n8n:v3-nightly"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Container timezone",
                      "defaultValue": "UTC"
                    },
                    "DB_TYPE": {
                      "description": "Use PostgreSQL as the shared n8n database",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_PORT": {
                      "description": "HTTP port for production webhook requests",
                      "defaultValue": "5678"
                    },
                    "N8N_PROXY_HOPS": {
                      "description": "Trust one Railway reverse proxy",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Queue webhook-triggered executions through Redis",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "description": "Public production webhook base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Default workflow timezone",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_MODE": {
                      "description": "Disable deprecated internal task runner mode",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "PostgreSQL private host from Railway",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "PostgreSQL connection port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "PostgreSQL database username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Reuse the Main encryption key",
                      "defaultValue": "${{Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "description": "Listen on IPv6 interfaces for Railway networking",
                      "defaultValue": "::"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis private host from Railway",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis connection port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Shared n8n database name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "PostgreSQL database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Disable anonymous diagnostic telemetry",
                      "defaultValue": "false"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis authentication password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis authentication username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "description": "Use database-backed binary data storage for queue compatibility",
                      "defaultValue": "database"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "description": "Enforce secure permissions on n8n settings files",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  }
                },
                "4d37c7bd-4c5d-4a6f-9b16-90afaa8410c4": {
                  "icon": "https://devicons.railway.app/n8n",
                  "name": "Worker",
                  "deploy": {
                    "startCommand": "n8n worker --concurrency=10"
                  },
                  "source": {
                    "image": "n8nio/n8n:v3-nightly"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Container timezone",
                      "defaultValue": "UTC"
                    },
                    "DB_TYPE": {
                      "description": "Use PostgreSQL as the shared n8n database",
                      "defaultValue": "postgresdb"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Process workflows from the Redis queue",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Default workflow timezone",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_MODE": {
                      "description": "Use the dedicated external Task Runner",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "PostgreSQL private host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "PostgreSQL port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "PostgreSQL username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Reuse the Main encryption key for credentials",
                      "defaultValue": "${{Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis private host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis connection port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Shared n8n database name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "PostgreSQL password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "description": "Generate a shared Worker-to-Runner authentication token",
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_BROKER_PORT": {
                      "description": "Private task broker port",
                      "defaultValue": "5679"
                    },
                    "N8N_NATIVE_PYTHON_RUNNER": {
                      "description": "Enable native Python execution in Code nodes",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis authentication password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis authentication username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "description": "Enable Worker health and readiness endpoints",
                      "defaultValue": "true"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "description": "Allow in-progress jobs time to finish during shutdown",
                      "defaultValue": "60"
                    },
                    "N8N_RUNNERS_BROKER_LISTEN_ADDRESS": {
                      "description": "Listen on IPv6 and compatible network interfaces",
                      "defaultValue": "::"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "description": "Enforce secure settings file permissions",
                      "defaultValue": "true"
                    }
                  }
                },
                "52693d70-f736-4c23-84bf-6ef1171a27e4": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Redis hostname on Railway private networking",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Default Redis TCP port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis ACL username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full Redis connection string using Railway private networking",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Compatibility alias exposing the Redis password under the REDISPASSWORD variable",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated 32-character Redis password using alphabetic characters",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "52693d70-f736-4c23-84bf-6ef1171a27e4": {
                      "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."
                  }
                },
                "5574fab7-305d-4fd5-9896-6e9192a2ce4f": {
                  "icon": "https://devicons.railway.app/n8n",
                  "name": "Task Runner",
                  "source": {
                    "image": "n8nio/n8n:v3-nightly"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Set the container timezone to UTC",
                      "defaultValue": "UTC"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Match the default timezone of the n8n instances",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "description": "Authenticate using the shared Worker task broker token",
                      "defaultValue": "${{Worker.N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_MAX_PAYLOAD": {
                      "description": "Maximum task payload size of 1 GiB",
                      "defaultValue": "1073741824"
                    },
                    "N8N_RUNNERS_MAX_CONCURRENCY": {
                      "description": "Allow up to five concurrent Code node tasks per runner",
                      "defaultValue": "5"
                    },
                    "N8N_RUNNERS_TASK_BROKER_URI": {
                      "description": "Connect to the Worker task broker through Railway private networking",
                      "defaultValue": "http://${{Worker.RAILWAY_PRIVATE_DOMAIN}}:5679"
                    },
                    "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT": {
                      "description": "Shut down idle runner processes after 15 seconds",
                      "defaultValue": "15"
                    },
                    "N8N_RUNNERS_LAUNCHER_HEALTH_CHECK_PORT": {
                      "description": "Internal health-check server port",
                      "defaultValue": "5680"
                    }
                  }
                },
                "acd77fe7-c4b4-4cc5-8e2d-e4b547c7fcce": {
                  "icon": "https://devicons.railway.app/n8n",
                  "name": "Main",
                  "deploy": {
                    "startCommand": "n8n start",
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "n8nio/n8n:v3-nightly"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Container operating system timezone",
                      "defaultValue": "UTC"
                    },
                    "DB_TYPE": {
                      "description": "Use PostgreSQL as the primary n8n database",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_PORT": {
                      "description": "Port for n8n Editor and REST API",
                      "defaultValue": "5678"
                    },
                    "N8N_PROXY_HOPS": {
                      "description": "Trust the Railway reverse proxy",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Use Redis-backed workflow execution queue",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "description": "Public base URL for production webhooks",
                      "defaultValue": "https://${{Webhook Processor.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root to access the Railway-mounted volume",
                      "defaultValue": "0"
                    },
                    "GENERIC_TIMEZONE": {
                      "description": "Default timezone used by n8n workflows",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_MODE": {
                      "description": "Disable deprecated internal task runner mode",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "PostgreSQL private host from Railway",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "PostgreSQL connection port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "PostgreSQL database username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Generate one shared encryption key for Main, Worker, and Webhook",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "description": "Listen on IPv6 interfaces for Railway networking",
                      "defaultValue": "::"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "description": "Public URL of the n8n Editor",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EXECUTIONS_DATA_PRUNE": {
                      "description": "Enable automatic cleanup of saved executions",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis private host from Railway",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis connection port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "PostgreSQL database name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "PostgreSQL database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "EXECUTIONS_DATA_MAX_AGE": {
                      "description": "Retain execution data for up to seven days",
                      "defaultValue": "168"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Disable anonymous diagnostic telemetry",
                      "defaultValue": "false"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis authentication password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis authentication username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "description": "Store persistent binary data in PostgreSQL for queue compatibility",
                      "defaultValue": "database"
                    },
                    "N8N_DISABLE_PRODUCTION_MAIN_PROCESS": {
                      "description": "Disable production webhook handling on Main",
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "description": "Enforce secure n8n settings file permissions",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  },
                  "volumeMounts": {
                    "acd77fe7-c4b4-4cc5-8e2d-e4b547c7fcce": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                },
                "ea34f722-704d-4e3c-a6dd-6dcaa1cca71d": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "ea34f722-704d-4e3c-a6dd-6dcaa1cca71d": {
                      "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": 6,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T16:15:08.794Z",
  "generator_version": "0.1.0"
}
