{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6af1b434-dad1-44df-b661-6d1d0c62406d",
    "slug": "n8n-queue-mode-nov26",
    "name": "n8n Queue Mode [Nov'26]",
    "description": "Self-hosted n8n workflow automation — queue mode, workers & Redis.",
    "url": "https://railway.com/deploy/n8n-queue-mode-nov26",
    "upstream": {
      "image": "n8nio/n8n:2.46.3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:2.46.3"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    },
    {
      "name": "n8n-worker",
      "source": {
        "image": "n8nio/n8n:2.46.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "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": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname of the Redis service, resolvable only from inside this project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port Redis listens on over the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis username. 'default' is the standard user on Redis 6 and later.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Full Redis connection string, assembled from the host, port and password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password the n8n services use to authenticate to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password, generated automatically on deploy. Leave as is.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n",
      "description": "Database backend n8n uses. Must stay postgresdb for queue mode.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "n8n",
      "description": "Public hostname Railway generates for this service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n",
      "description": "Port n8n listens on inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n",
      "description": "Base URL used in webhook addresses. Kept for n8n versions before 2.30.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "n8n",
      "description": "Protocol n8n builds its URLs with. Railway terminates TLS, so this is https.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "Number of proxies in front of n8n, so it reads the real client IP.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n",
      "description": "Set to queue so executions are handed to the worker via Redis.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_WEBHOOK_URL",
      "service": "n8n",
      "description": "Public base URL n8n uses when generating webhook addresses.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "n8n",
      "description": "Runs the container as root so n8n can write to the attached volume. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n",
      "description": "Timezone used for schedule triggers and cron expressions.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n",
      "description": "Postgres hostname, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n",
      "description": "Postgres port, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n",
      "description": "Postgres database name, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Generated on deploy and shared with the worker. Keep it if you ever migrate.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n",
      "description": "Public URL of the editor, used in emails and OAuth redirects.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EXECUTIONS_DATA_PRUNE",
      "service": "n8n",
      "description": "Deletes old execution records so the database does not grow without bound.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n",
      "description": "Redis hostname, injected from the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n",
      "description": "Redis port, injected from the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n",
      "description": "Postgres database name, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n",
      "description": "Postgres password, injected from the Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_DATA_MAX_AGE",
      "service": "n8n",
      "description": "How many hours of execution history to keep. 336 is 14 days.",
      "secret": false,
      "strategy": "default",
      "default": "336"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n",
      "description": "Redis password, injected from the Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n",
      "description": "Keeps binary data in Postgres so the worker and main instance share it without S3.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-worker",
      "description": "Database backend n8n uses. Must stay postgresdb for queue mode.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n-worker",
      "description": "Set to queue so this service runs as a worker pulling jobs from Redis.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n-worker",
      "description": "Timezone used for schedule triggers and cron expressions.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-worker",
      "description": "Postgres hostname, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-worker",
      "description": "Postgres port, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-worker",
      "description": "Postgres role, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n-worker",
      "description": "Shared with the main n8n service so this worker can decrypt stored credentials.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n-worker",
      "description": "Redis hostname, injected from the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n-worker",
      "description": "Redis port, injected from the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-worker",
      "description": "Postgres database name, injected from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-worker",
      "description": "Postgres password, injected from the Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n-worker",
      "description": "Redis password, injected from the Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n-worker",
      "description": "Keeps binary data in Postgres so the worker and main instance share it without S3.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory inside the volume where Postgres keeps its data files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname of the Postgres service, resolvable only inside this project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on over the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Postgres role n8n connects as.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Name of the database n8n stores workflows and executions in.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password n8n uses to connect to Postgres.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Full Postgres connection string, assembled from the host, user, password and database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres password, generated automatically on deploy. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity period in days for the self-signed SSL certificate Postgres generates.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser role created on first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period Postgres gets to shut down cleanly during a redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-queue-mode-nov26"
      }
    },
    "cli": "railway deploy --template n8n-queue-mode-nov26",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6af1b434-dad1-44df-b661-6d1d0c62406d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "13778aa3-7647-4e6b-9797-98d7d4cab809": {
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the Redis service, resolvable only from inside this project.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port Redis listens on over the private network.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username. 'default' is the standard user on Redis 6 and later.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full Redis connection string, assembled from the host, port and password.",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password the n8n services use to authenticate to Redis.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, generated automatically on deploy. Leave as is.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "13778aa3-7647-4e6b-9797-98d7d4cab809": {
                      "mountPath": "/data"
                    }
                  }
                },
                "5bded9c9-7671-4280-8f5f-3512c49cf135": {
                  "icon": null,
                  "name": "n8n",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.46.3"
                  },
                  "variables": {
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database backend n8n uses. Must stay postgresdb for queue mode.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "isOptional": false,
                      "description": "Public hostname Railway generates for this service.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PORT": {
                      "isOptional": false,
                      "description": "Port n8n listens on inside the container.",
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Base URL used in webhook addresses. Kept for n8n versions before 2.30.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PROTOCOL": {
                      "isOptional": false,
                      "description": "Protocol n8n builds its URLs with. Railway terminates TLS, so this is https.",
                      "defaultValue": "https"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": false,
                      "description": "Number of proxies in front of n8n, so it reads the real client IP.",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Set to queue so executions are handed to the worker via Redis.",
                      "defaultValue": "queue"
                    },
                    "N8N_WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Public base URL n8n uses when generating webhook addresses.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the container as root so n8n can write to the attached volume. Do not change.",
                      "defaultValue": "0"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone used for schedule triggers and cron expressions.",
                      "defaultValue": "UTC"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "Postgres hostname, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "Postgres database name, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated on deploy and shared with the worker. Keep it if you ever migrate.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of the editor, used in emails and OAuth redirects.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EXECUTIONS_DATA_PRUNE": {
                      "isOptional": false,
                      "description": "Deletes old execution records so the database does not grow without bound.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis hostname, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "Postgres database name, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "EXECUTIONS_DATA_MAX_AGE": {
                      "isOptional": false,
                      "description": "How many hours of execution history to keep. 336 is 14 days.",
                      "defaultValue": "336"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": false,
                      "description": "Keeps binary data in Postgres so the worker and main instance share it without S3.",
                      "defaultValue": "default"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  },
                  "volumeMounts": {
                    "5bded9c9-7671-4280-8f5f-3512c49cf135": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                },
                "bde34356-2cff-4cc5-8282-5dd25aba5aee": {
                  "icon": null,
                  "name": "n8n-worker",
                  "deploy": {
                    "startCommand": "n8n worker --concurrency=5",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.46.3"
                  },
                  "variables": {
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database backend n8n uses. Must stay postgresdb for queue mode.",
                      "defaultValue": "postgresdb"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": false,
                      "description": "Set to queue so this service runs as a worker pulling jobs from Redis.",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone used for schedule triggers and cron expressions.",
                      "defaultValue": "UTC"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "Postgres hostname, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "Postgres role, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Shared with the main n8n service so this worker can decrypt stored credentials.",
                      "defaultValue": "${{n8n.N8N_ENCRYPTION_KEY}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis hostname, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "Postgres database name, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password, injected from the Postgres service.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, injected from the Redis service.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": false,
                      "description": "Keeps binary data in Postgres so the worker and main instance share it without S3.",
                      "defaultValue": "default"
                    }
                  }
                },
                "c974951d-82c8-4208-8e15-59cb3787aa23": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Directory inside the volume where Postgres keeps its data files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the Postgres service, resolvable only inside this project.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on over the private network.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres role n8n connects as.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Name of the database n8n stores workflows and executions in.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password n8n uses to connect to Postgres.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full Postgres connection string, assembled from the host, user, password and database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres password, generated automatically on deploy. Leave as is.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity period in days for the self-signed SSL certificate Postgres generates.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser role created on first boot.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period Postgres gets to shut down cleanly during a redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "c974951d-82c8-4208-8e15-59cb3787aa23": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-11-03T22:15:11.821Z",
  "generator_version": "0.1.0"
}
