{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7a9a01b9-1532-441e-a688-389a5f107085",
    "slug": "n8n-automation",
    "name": "n8n | Open Source Zapier Alternative",
    "description": "Self-hosted workflow automation in queue mode with a dedicated worker.",
    "url": "https://railway.com/deploy/n8n-automation",
    "upstream": {
      "image": "n8nio/n8n:2.38.1"
    }
  },
  "services": [
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:2.38.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:18.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "Worker",
      "source": {
        "image": "n8nio/n8n:2.38.1"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.1-alpine"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "n8n",
      "description": "Timezone of the container itself, used for log timestamps and date formatting.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "n8n",
      "description": "Port Railway routes public traffic and healthchecks to. Must match N8N_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n",
      "description": "Database driver. n8n stores workflows, credentials and execution history in Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "n8n",
      "description": "Provide a value for N8N_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n",
      "description": "Port n8n binds. Must match PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "n8n",
      "description": "Scheme n8n uses when it builds its own URLs.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "Number of reverse proxies in front of n8n — exactly one on Railway. Left at 0 every request looks like it came from the edge, which quietly breaks rate limiting and the login lockout.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n",
      "description": "Queue mode: the editor hands work to the Worker over Redis instead of running it itself. Changing this to 'regular' makes the Worker service dead weight.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "n8n",
      "description": "Provide a value for N8N_WEBHOOK_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n",
      "description": "Timezone used by Schedule and Cron triggers. Set it to yours or every schedule fires at the wrong hour.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n",
      "description": "Code nodes run in a task runner launched as a child process. 'external' needs a separate runner image and is not part of this template.",
      "secret": false,
      "strategy": "default",
      "default": "internal"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n",
      "description": "Provide a value for DB_POSTGRESDB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n",
      "description": "Port of the Postgres service on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n",
      "description": "Postgres role n8n connects as.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Encrypts stored credentials. Generated once — if you lose it, every saved credential becomes unreadable, and if you change it, the Worker can no longer decrypt what the editor saved.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "n8n",
      "description": "Bind address. The wildcard IPv6 socket is dual-stack on Node, so the healthcheck still gets an answer over IPv4.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_PYTHON_ENABLED",
      "service": "n8n",
      "description": "This image ships no Python interpreter, so the Code node offers JavaScript only. Leaving it on would let you write a Python node that fails when it runs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n",
      "description": "Provide a value for N8N_EDITOR_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n",
      "description": "Provide a value for QUEUE_BULL_REDIS_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n",
      "description": "Port of the Redis service on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n",
      "description": "Database name. Must match POSTGRES_DB on the Postgres service.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n",
      "description": "Provide a value for DB_POSTGRESDB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_DATA_MAX_AGE",
      "service": "n8n",
      "description": "Hours of execution history to keep (14 days). This is the dial that decides how fast the Postgres volume fills up.",
      "secret": false,
      "strategy": "default",
      "default": "336"
    },
    {
      "key": "N8N_RUNNERS_TASK_TIMEOUT",
      "service": "n8n",
      "description": "Seconds a single Code node may run before it is aborted.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n",
      "description": "Lets the Redis client resolve IPv6. Railway's private network is IPv6-only, so without this the queue never connects.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_UNVERIFIED_PACKAGES_ENABLED",
      "service": "n8n",
      "description": "Allows installing community nodes outside n8n's verified list. Set to false for a locked-down instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "n8n",
      "description": "Required on Alpine-based images for *.railway.internal to resolve at all.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD",
      "service": "n8n",
      "description": "How long (ms) n8n keeps trying to reach Redis before it exits. The upstream default of 10s is shorter than a Redis restart takes, which turns a routine restart into an outage.",
      "secret": false,
      "strategy": "default",
      "default": "60000"
    },
    {
      "key": "N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES",
      "service": "n8n",
      "description": "Maximum number of files in an archive the Compression node will open.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "n8n",
      "description": "Test runs from the editor go through the queue too, so a long test does not block the UI.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES",
      "service": "n8n",
      "description": "Ceiling (bytes) on what the Compression node may unpack. 256 MiB — a container this size cannot hold upstream's 2 GiB default, and the limit gives you an error instead of an out-of-memory kill.",
      "secret": false,
      "strategy": "default",
      "default": "268435456"
    },
    {
      "key": "PORT",
      "service": "Postgres",
      "description": "Port Postgres listens on inside the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot. Must match DB_POSTGRESDB_DATABASE.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser role created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated once on deploy. Changing it here does not change it in the database.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "Worker",
      "description": "Timezone of the container itself, used for log timestamps and date formatting.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Worker",
      "description": "Port the worker's health endpoint listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "Worker",
      "description": "Database driver. n8n stores workflows, credentials and execution history in Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Worker",
      "description": "Queue mode: the editor hands work to the Worker over Redis instead of running it itself. Changing this to 'regular' makes the Worker service dead weight.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "Worker",
      "description": "Provide a value for N8N_WEBHOOK_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "Worker",
      "description": "Timezone used by Schedule and Cron triggers. Set it to yours or every schedule fires at the wrong hour.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "Worker",
      "description": "Code nodes run in a task runner launched as a child process. 'external' needs a separate runner image and is not part of this template.",
      "secret": false,
      "strategy": "default",
      "default": "internal"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Worker",
      "description": "Provide a value for DB_POSTGRESDB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Worker",
      "description": "Port of the Postgres service on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Worker",
      "description": "Postgres role n8n connects as.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Worker",
      "description": "Taken from the editor service — it has to be byte-identical, or the worker cannot decrypt the credentials attached to the jobs it picks up.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_PYTHON_ENABLED",
      "service": "Worker",
      "description": "This image ships no Python interpreter, so the Code node offers JavaScript only. Leaving it on would let you write a Python node that fails when it runs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Worker",
      "description": "Provide a value for QUEUE_BULL_REDIS_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Worker",
      "description": "Port of the Redis service on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Worker",
      "description": "Database name. Must match POSTGRES_DB on the Postgres service.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Worker",
      "description": "Provide a value for DB_POSTGRESDB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_PORT",
      "service": "Worker",
      "description": "Port for that health endpoint. Must match PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_RUNNERS_TASK_TIMEOUT",
      "service": "Worker",
      "description": "Seconds a single Code node may run before it is aborted.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "Worker",
      "description": "Exposes /healthz on the worker. Off by default upstream, which leaves Railway unable to tell a wedged worker from a healthy one.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "Worker",
      "description": "Lets the Redis client resolve IPv6. Railway's private network is IPv6-only, so without this the queue never connects.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_UNVERIFIED_PACKAGES_ENABLED",
      "service": "Worker",
      "description": "Allows installing community nodes outside n8n's verified list. Set to false for a locked-down instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Worker",
      "description": "Required on Alpine-based images for *.railway.internal to resolve at all.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD",
      "service": "Worker",
      "description": "How long (ms) n8n keeps trying to reach Redis before it exits. The upstream default of 10s is shorter than a Redis restart takes, which turns a routine restart into an outage.",
      "secret": false,
      "strategy": "default",
      "default": "60000"
    },
    {
      "key": "N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES",
      "service": "Worker",
      "description": "Maximum number of files in an archive the Compression node will open.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES",
      "service": "Worker",
      "description": "Ceiling (bytes) on what the Compression node may unpack. 256 MiB — a container this size cannot hold upstream's 2 GiB default, and the limit gives you an error instead of an out-of-memory kill.",
      "secret": false,
      "strategy": "default",
      "default": "268435456"
    },
    {
      "key": "PORT",
      "service": "Redis",
      "description": "Port Redis listens on inside the private network. Reachable only from this project — there is no public proxy.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-automation"
      }
    },
    "cli": "railway deploy --template n8n-automation",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7a9a01b9-1532-441e-a688-389a5f107085",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2ab7c697-daa4-45f1-acb2-2013cc967e3a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n",
                  "deploy": {
                    "startCommand": "tini -- /docker-entrypoint.sh start",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.38.1"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone of the container itself, used for log timestamps and date formatting.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes public traffic and healthchecks to. Must match N8N_PORT.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database driver. n8n stores workflows, credentials and execution history in Postgres.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PORT": {
                      "isOptional": false,
                      "description": "Port n8n binds. Must match PORT.",
                      "defaultValue": "5678"
                    },
                    "N8N_PROTOCOL": {
                      "isOptional": false,
                      "description": "Scheme n8n uses when it builds its own URLs.",
                      "defaultValue": "https"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": false,
                      "description": "Number of reverse proxies in front of n8n — exactly one on Railway. Left at 0 every request looks like it came from the edge, which quietly breaks rate limiting and the login lockout.",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Queue mode: the editor hands work to the Worker over Redis instead of running it itself. Changing this to 'regular' makes the Worker service dead weight.",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone used by Schedule and Cron triggers. Set it to yours or every schedule fires at the wrong hour.",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_MODE": {
                      "isOptional": false,
                      "description": "Code nodes run in a task runner launched as a child process. 'external' needs a separate runner image and is not part of this template.",
                      "defaultValue": "internal"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Port of the Postgres service on the private network.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "Postgres role n8n connects as.",
                      "defaultValue": "postgres"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored credentials. Generated once — if you lose it, every saved credential becomes unreadable, and if you change it, the Worker can no longer decrypt what the editor saved.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Bind address. The wildcard IPv6 socket is dual-stack on Node, so the healthcheck still gets an answer over IPv4.",
                      "defaultValue": "::"
                    },
                    "N8N_PYTHON_ENABLED": {
                      "isOptional": false,
                      "description": "This image ships no Python interpreter, so the Code node offers JavaScript only. Leaving it on would let you write a Python node that fails when it runs.",
                      "defaultValue": "false"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Port of the Redis service on the private network.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name. Must match POSTGRES_DB on the Postgres service.",
                      "defaultValue": "n8n"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "EXECUTIONS_DATA_MAX_AGE": {
                      "isOptional": false,
                      "description": "Hours of execution history to keep (14 days). This is the dial that decides how fast the Postgres volume fills up.",
                      "defaultValue": "336"
                    },
                    "N8N_RUNNERS_TASK_TIMEOUT": {
                      "isOptional": false,
                      "description": "Seconds a single Code node may run before it is aborted.",
                      "defaultValue": "300"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": false,
                      "description": "Lets the Redis client resolve IPv6. Railway's private network is IPv6-only, so without this the queue never connects.",
                      "defaultValue": "true"
                    },
                    "NODE_FUNCTION_ALLOW_BUILTIN": {
                      "isOptional": true,
                      "description": "Node.js built-in modules the Code node may require, comma-separated (for example 'crypto,url') or '*' for all. Empty blocks every module.",
                      "defaultValue": ""
                    },
                    "NODE_FUNCTION_ALLOW_EXTERNAL": {
                      "isOptional": true,
                      "description": "npm packages the Code node may require, comma-separated. Only packages already present in the image can be loaded.",
                      "defaultValue": ""
                    },
                    "N8N_UNVERIFIED_PACKAGES_ENABLED": {
                      "isOptional": false,
                      "description": "Allows installing community nodes outside n8n's verified list. Set to false for a locked-down instance.",
                      "defaultValue": "true"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Required on Alpine-based images for *.railway.internal to resolve at all.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD": {
                      "isOptional": false,
                      "description": "How long (ms) n8n keeps trying to reach Redis before it exits. The upstream default of 10s is shorter than a Redis restart takes, which turns a routine restart into an outage.",
                      "defaultValue": "60000"
                    },
                    "N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES": {
                      "isOptional": false,
                      "description": "Maximum number of files in an archive the Compression node will open.",
                      "defaultValue": "1000"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "isOptional": false,
                      "description": "Test runs from the editor go through the queue too, so a long test does not block the UI.",
                      "defaultValue": "true"
                    },
                    "N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES": {
                      "isOptional": false,
                      "description": "Ceiling (bytes) on what the Compression node may unpack. 256 MiB — a container this size cannot hold upstream's 2 GiB default, and the limit gives you an error instead of an out-of-memory kill.",
                      "defaultValue": "268435456"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  }
                },
                "4348790c-a669-4ef5-a329-2c133776ef40": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "postgres:18.6-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on inside the private network.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot. Must match DB_POSTGRESDB_DATABASE.",
                      "defaultValue": "n8n"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser role created on first boot.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated once on deploy. Changing it here does not change it in the database.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "4348790c-a669-4ef5-a329-2c133776ef40": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "5872246e-035d-45a6-9b31-09053e515911": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "Worker",
                  "deploy": {
                    "startCommand": "tini -- /docker-entrypoint.sh worker",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.38.1"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone of the container itself, used for log timestamps and date formatting.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the worker's health endpoint listens on.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database driver. n8n stores workflows, credentials and execution history in Postgres.",
                      "defaultValue": "postgresdb"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Queue mode: the editor hands work to the Worker over Redis instead of running it itself. Changing this to 'regular' makes the Worker service dead weight.",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{n8n.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone used by Schedule and Cron triggers. Set it to yours or every schedule fires at the wrong hour.",
                      "defaultValue": "UTC"
                    },
                    "N8N_RUNNERS_MODE": {
                      "isOptional": false,
                      "description": "Code nodes run in a task runner launched as a child process. 'external' needs a separate runner image and is not part of this template.",
                      "defaultValue": "internal"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Port of the Postgres service on the private network.",
                      "defaultValue": "5432"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "Postgres role n8n connects as.",
                      "defaultValue": "postgres"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Taken from the editor service — it has to be byte-identical, or the worker cannot decrypt the credentials attached to the jobs it picks up.",
                      "defaultValue": "${{ n8n.N8N_ENCRYPTION_KEY }}"
                    },
                    "N8N_PYTHON_ENABLED": {
                      "isOptional": false,
                      "description": "This image ships no Python interpreter, so the Code node offers JavaScript only. Leaving it on would let you write a Python node that fails when it runs.",
                      "defaultValue": "false"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Port of the Redis service on the private network.",
                      "defaultValue": "6379"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name. Must match POSTGRES_DB on the Postgres service.",
                      "defaultValue": "n8n"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "QUEUE_HEALTH_CHECK_PORT": {
                      "isOptional": false,
                      "description": "Port for that health endpoint. Must match PORT.",
                      "defaultValue": "5678"
                    },
                    "N8N_RUNNERS_TASK_TIMEOUT": {
                      "isOptional": false,
                      "description": "Seconds a single Code node may run before it is aborted.",
                      "defaultValue": "300"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "isOptional": false,
                      "description": "Exposes /healthz on the worker. Off by default upstream, which leaves Railway unable to tell a wedged worker from a healthy one.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": false,
                      "description": "Lets the Redis client resolve IPv6. Railway's private network is IPv6-only, so without this the queue never connects.",
                      "defaultValue": "true"
                    },
                    "NODE_FUNCTION_ALLOW_BUILTIN": {
                      "isOptional": true,
                      "description": "Node.js built-in modules the Code node may require, comma-separated (for example 'crypto,url') or '*' for all. Empty blocks every module.",
                      "defaultValue": ""
                    },
                    "NODE_FUNCTION_ALLOW_EXTERNAL": {
                      "isOptional": true,
                      "description": "npm packages the Code node may require, comma-separated. Only packages already present in the image can be loaded.",
                      "defaultValue": ""
                    },
                    "N8N_UNVERIFIED_PACKAGES_ENABLED": {
                      "isOptional": false,
                      "description": "Allows installing community nodes outside n8n's verified list. Set to false for a locked-down instance.",
                      "defaultValue": "true"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Required on Alpine-based images for *.railway.internal to resolve at all.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD": {
                      "isOptional": false,
                      "description": "How long (ms) n8n keeps trying to reach Redis before it exits. The upstream default of 10s is shorter than a Redis restart takes, which turns a routine restart into an outage.",
                      "defaultValue": "60000"
                    },
                    "N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES": {
                      "isOptional": false,
                      "description": "Maximum number of files in an archive the Compression node will open.",
                      "defaultValue": "1000"
                    },
                    "N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES": {
                      "isOptional": false,
                      "description": "Ceiling (bytes) on what the Compression node may unpack. 256 MiB — a container this size cannot hold upstream's 2 GiB default, and the limit gives you an error instead of an out-of-memory kill.",
                      "defaultValue": "268435456"
                    }
                  }
                },
                "6c6985ba-16a2-4d89-9de6-4b680d059bb2": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "redis:8.10.1-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Redis listens on inside the private network. Reachable only from this project — there is no public proxy.",
                      "defaultValue": "6379"
                    }
                  },
                  "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "n8n",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T09:56:05.165Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8ea2f40d580d4da4832c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 88,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Worker"
  }
}
