{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6b259a77-4ad7-401f-bc01-30711b539af8",
    "slug": "ai-agentic-automation-stack-n8n",
    "name": "AI Agentic Automation Stack (n8n)",
    "description": "All-in-One AI Automation Stack: workflows, agents, vector DB, web scraping",
    "url": "https://railway.com/deploy/ai-agentic-automation-stack-n8n",
    "upstream": {
      "image": "n8nio/n8n"
    }
  },
  "services": [
    {
      "name": "Main",
      "source": {
        "image": "n8nio/n8n"
      },
      "needs_volume": true,
      "volume_mount_path": "/n8n-binary-data",
      "http": true
    },
    {
      "name": "Worker",
      "source": {
        "image": "n8nio/n8n"
      },
      "needs_volume": true,
      "volume_mount_path": "/n8n-binary-data",
      "http": false
    },
    {
      "name": "Qdrant",
      "source": {
        "image": "qdrant/qdrant"
      },
      "needs_volume": true,
      "volume_mount_path": "/qdrant/storage",
      "http": false
    },
    {
      "name": "SearXNG",
      "source": {
        "repo": "https://github.com/protemplate/searxng"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "WebhookProcessor",
      "source": {
        "image": "n8nio/n8n"
      },
      "needs_volume": true,
      "volume_mount_path": "/n8n-binary-data",
      "http": true
    },
    {
      "name": "Crawl4AI",
      "source": {
        "image": "unclecode/crawl4ai:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgis",
      "source": {
        "image": "ghcr.io/railwayapp-templates/timescale-postgis-ssl:pg17-ts2.17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnamilegacy/redis:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Main",
      "description": "The application's HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "Main",
      "description": "Database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "Main",
      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Main",
      "description": "Task runner Node.js process memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "--max_old_space_size=8192"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Main",
      "description": "Should executions be direct or queued?",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Main",
      "description": "Database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Main",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Main",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Main",
      "description": "Generates a secure random 32-character string",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "Main",
      "description": "n8n's listening IP address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "Main",
      "description": "Public editor URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "Main",
      "description": "Are task runners running?",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Main",
      "description": "Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Main",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Main",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Main",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "Main",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "Main",
      "description": "Redis username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "Main",
      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_BINARY_DATA_STORAGE_PATH",
      "service": "Main",
      "description": "Provide a value for N8N_BINARY_DATA_STORAGE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/n8n-binary-data"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "Main",
      "description": "Provide a value for N8N_DEFAULT_BINARY_DATA_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "filesystem"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Main",
      "description": "Enable alpine private networking",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_DISABLE_PRODUCTION_MAIN_PROCESS",
      "service": "Main",
      "description": "Disable the webhook process in the main process",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "Main",
      "description": "Provide a value for OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "Main",
      "description": "Provide a value for N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "Worker",
      "description": "The application's HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "Worker",
      "description": "Database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "Worker",
      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Worker",
      "description": "Task runner Node.js process memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "--max_old_space_size=8192"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "Worker",
      "description": "Should executions be direct or queued?",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "Worker",
      "description": "Database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "Worker",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "Worker",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "Worker",
      "description": "Generates a secure random 32-character string",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "Worker",
      "description": "n8n's listening IP address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "Worker",
      "description": "Are task runners running?",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "Worker",
      "description": "Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "Worker",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "Worker",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "Worker",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "Worker",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "Worker",
      "description": "Redis username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "Worker",
      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_BINARY_DATA_STORAGE_PATH",
      "service": "Worker",
      "description": "Provide a value for N8N_BINARY_DATA_STORAGE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/n8n-binary-data"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "Worker",
      "description": "Provide a value for N8N_DEFAULT_BINARY_DATA_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "filesystem"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Worker",
      "description": "Enable alpine private networking",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "Worker",
      "description": "Provide a value for OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "Worker",
      "description": "Provide a value for N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QDRANT__SERVICE__HOST",
      "service": "Qdrant",
      "description": "Provide a value for QDRANT__SERVICE__HOST.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "SearXNG",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SEARXNG_BASE_URL",
      "service": "SearXNG",
      "description": "Provide a value for SEARXNG_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SEARXNG_SECRET_KEY",
      "service": "SearXNG",
      "description": "Provide a value for SEARXNG_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SEARXNG_UWSGI_THREADS",
      "service": "SearXNG",
      "description": "Provide a value for SEARXNG_UWSGI_THREADS.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "SEARXNG_UWSGI_WORKERS",
      "service": "SearXNG",
      "description": "Provide a value for SEARXNG_UWSGI_WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "SearXNG",
      "description": "Provide a value for ENABLE_ALPINE_PRIVATE_NETWORKING.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "WebhookProcessor",
      "description": "The application's HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "WebhookProcessor",
      "description": "Database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "WebhookProcessor",
      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "WebhookProcessor",
      "description": "Task runner Node.js process memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "--max_old_space_size=8192"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "WebhookProcessor",
      "description": "Should executions be direct or queued?",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "WebhookProcessor",
      "description": "Database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "WebhookProcessor",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "WebhookProcessor",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "WebhookProcessor",
      "description": "Generates a secure random 32-character string",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "WebhookProcessor",
      "description": "n8n's listening IP address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "WebhookProcessor",
      "description": "Are task runners running?",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "WebhookProcessor",
      "description": "Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "WebhookProcessor",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "WebhookProcessor",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "WebhookProcessor",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "WebhookProcessor",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "WebhookProcessor",
      "description": "Redis username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "WebhookProcessor",
      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_BINARY_DATA_STORAGE_PATH",
      "service": "WebhookProcessor",
      "description": "Provide a value for N8N_BINARY_DATA_STORAGE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/n8n-binary-data"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "WebhookProcessor",
      "description": "Provide a value for N8N_DEFAULT_BINARY_DATA_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "filesystem"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "WebhookProcessor",
      "description": "Enable alpine private networking",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "WebhookProcessor",
      "description": "Provide a value for OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "WebhookProcessor",
      "description": "Provide a value for N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "Crawl4AI",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "11235"
    },
    {
      "key": "CRAWL4AI_API_TOKEN",
      "service": "Crawl4AI",
      "description": "Provide a value for CRAWL4AI_API_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgis",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgis",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgis",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NO_TS_TUNE",
      "service": "Postgis",
      "description": "Do not run timescaledb-tune at Startup. This improves memory usage of the database.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgis",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgis",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgis",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "n8n"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgis",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgis",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgis",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Postgis",
      "description": "Run as root to enable permissions to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgis",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgis",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgis",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_RDB_POLICY",
      "service": "Redis",
      "description": "Set a RDB snapshot policy.",
      "secret": false,
      "strategy": "default",
      "default": "3600#1 300#100 60#10000"
    },
    {
      "key": "REDIS_AOF_ENABLED",
      "service": "Redis",
      "description": "Disable writing to AOF file.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ai-agentic-automation-stack-n8n"
      }
    },
    "cli": "railway deploy --template ai-agentic-automation-stack-n8n",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6b259a77-4ad7-401f-bc01-30711b539af8",
            "serializedConfig": {
              "services": {
                "06750f91-9105-471f-9d0e-44176f46d729": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/n8n-icon.svg",
                  "name": "Main",
                  "deploy": {
                    "startCommand": "n8n start",
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "n8nio/n8n"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The application's HTTP port",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "description": "Database type",
                      "defaultValue": "postgresdb"
                    },
                    "WEBHOOK_URL": {
                      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
                      "defaultValue": "https://${{WebProcessor.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "description": "Task runner Node.js process memory limit.",
                      "defaultValue": "--max_old_space_size=8192"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Should executions be direct or queued?",
                      "defaultValue": "queue"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "Database host",
                      "defaultValue": "${{Postgis.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "Database port",
                      "defaultValue": "${{Postgis.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "Database username",
                      "defaultValue": "${{Postgis.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Generates a secure random 32-character string",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "description": "n8n's listening IP address",
                      "defaultValue": "::"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "description": "Public editor URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "description": "Are task runners running?",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Database name",
                      "defaultValue": "${{Postgis.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "Database password",
                      "defaultValue": "${{Postgis.POSTGRES_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
                      "defaultValue": "true"
                    },
                    "N8N_BINARY_DATA_STORAGE_PATH": {
                      "defaultValue": "/n8n-binary-data"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "defaultValue": "filesystem"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "description": "Enable alpine private networking",
                      "defaultValue": "true"
                    },
                    "N8N_DISABLE_PRODUCTION_MAIN_PROCESS": {
                      "description": "Disable the webhook process in the main process",
                      "defaultValue": "true"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "06750f91-9105-471f-9d0e-44176f46d729": {
                      "mountPath": "/n8n-binary-data"
                    }
                  }
                },
                "0a17f47a-3036-47fc-876a-8125e486556f": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/n8n-icon.svg",
                  "name": "Worker",
                  "deploy": {
                    "startCommand": "n8n worker"
                  },
                  "source": {
                    "image": "n8nio/n8n"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The application's HTTP port",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "description": "Database type",
                      "defaultValue": "postgresdb"
                    },
                    "WEBHOOK_URL": {
                      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
                      "defaultValue": "https://${{WebhookProcessor.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "description": "Task runner Node.js process memory limit.",
                      "defaultValue": "--max_old_space_size=8192"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Should executions be direct or queued?",
                      "defaultValue": "queue"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "Database host",
                      "defaultValue": "${{Postgis.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "Database port",
                      "defaultValue": "${{Postgis.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "Database username",
                      "defaultValue": "${{Postgis.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Generates a secure random 32-character string",
                      "defaultValue": "${{Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "description": "n8n's listening IP address",
                      "defaultValue": "::"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "description": "Are task runners running?",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Database name",
                      "defaultValue": "${{Postgis.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "Database password",
                      "defaultValue": "${{Postgis.POSTGRES_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
                      "defaultValue": "true"
                    },
                    "N8N_BINARY_DATA_STORAGE_PATH": {
                      "defaultValue": "/n8n-binary-data"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "defaultValue": "filesystem"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "description": "Enable alpine private networking",
                      "defaultValue": "true"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "0a17f47a-3036-47fc-876a-8125e486556f": {
                      "mountPath": "/n8n-binary-data"
                    }
                  }
                },
                "44ff8fa7-edc0-407d-869d-f868aa071ddd": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/qdrant.png",
                  "name": "Qdrant",
                  "source": {
                    "image": "qdrant/qdrant"
                  },
                  "variables": {
                    "QDRANT__SERVICE__HOST": {
                      "defaultValue": "::"
                    }
                  },
                  "volumeMounts": {
                    "44ff8fa7-edc0-407d-869d-f868aa071ddd": {
                      "mountPath": "/qdrant/storage"
                    }
                  }
                },
                "7fb270a1-f168-4e90-a7fb-90de491dea26": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/searxng-wordmark.svg",
                  "name": "SearXNG",
                  "source": {
                    "repo": "protemplate/searxng",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "SEARXNG_BASE_URL": {
                      "defaultValue": "http://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "SEARXNG_SECRET_KEY": {
                      "defaultValue": "{{SEARXNG_SECRET_KEY}}"
                    },
                    "SEARXNG_UWSGI_THREADS": {
                      "defaultValue": "4"
                    },
                    "SEARXNG_UWSGI_WORKERS": {
                      "defaultValue": "4"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "99b21228-1c18-4b99-bb5e-6368ecb04d10": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/n8n-icon.svg",
                  "name": "WebhookProcessor",
                  "deploy": {
                    "startCommand": "n8n webhook"
                  },
                  "source": {
                    "image": "n8nio/n8n"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The application's HTTP port",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "description": "Database type",
                      "defaultValue": "postgresdb"
                    },
                    "WEBHOOK_URL": {
                      "description": "Manual Webhook URL configuration was required for n8n behind a reverse proxy",
                      "defaultValue": "https://${{WebhookProcessor.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "description": "Task runner Node.js process memory limit.",
                      "defaultValue": "--max_old_space_size=8192"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Should executions be direct or queued?",
                      "defaultValue": "queue"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "Database host",
                      "defaultValue": "${{Postgis.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "Database port",
                      "defaultValue": "${{Postgis.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "Database username",
                      "defaultValue": "${{Postgis.POSTGRES_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Generates a secure random 32-character string",
                      "defaultValue": "${{Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "description": "n8n's listening IP address",
                      "defaultValue": "::"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "description": "Are task runners running?",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "Redis host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "Database name",
                      "defaultValue": "${{Postgis.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "Database password",
                      "defaultValue": "${{Postgis.POSTGRES_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "Redis username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Configure Redis connections for dual-stack (IPv4/IPv6).",
                      "defaultValue": "true"
                    },
                    "N8N_BINARY_DATA_STORAGE_PATH": {
                      "defaultValue": "/n8n-binary-data"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "defaultValue": "filesystem"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "description": "Enable alpine private networking",
                      "defaultValue": "true"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "99b21228-1c18-4b99-bb5e-6368ecb04d10": {
                      "mountPath": "/n8n-binary-data"
                    }
                  }
                },
                "a3acd84c-2c6a-4d68-bf0e-52013cb05405": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/crawl4ai.jpg",
                  "name": "Crawl4AI",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "unclecode/crawl4ai:latest"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "11235"
                    },
                    "GROQ_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "MISTRAL_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "DEEPSEEK_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "GEMINI_API_TOKEN": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "TOGETHER_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "CRAWL4AI_API_TOKEN": {
                      "defaultValue": "{{CRAWL4AI_API_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "b1720f2c-c696-4a69-9c46-ac38fe206dae": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/elephant.png",
                  "name": "Postgis",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/timescale-postgis-ssl:pg17-ts2.17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "NO_TS_TUNE": {
                      "description": "Do not run timescaledb-tune at Startup. This improves memory usage of the database.",
                      "defaultValue": "true"
                    },
                    "PGDATABASE": {
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Default database created when image is started.",
                      "defaultValue": "n8n"
                    },
                    "DATABASE_URL": {
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root to enable permissions to the volume",
                      "defaultValue": "0"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "b1720f2c-c696-4a69-9c46-ac38fe206dae": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "dafe5cf9-7add-402f-b8d1-74eebb483c48": {
                  "icon": "https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/Redis_Mark_Red_RGB.png",
                  "name": "Redis",
                  "source": {
                    "image": "bitnamilegacy/redis:latest"
                  },
                  "variables": {
                    "REDISHOST": {
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://${{ REDISUSER}}:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:${{REDIS.REDISPORT}}"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "REDIS_RDB_POLICY": {
                      "description": "Set a RDB snapshot policy.",
                      "defaultValue": "3600#1 300#100 60#10000"
                    },
                    "REDIS_AOF_ENABLED": {
                      "description": "Disable writing to AOF file.",
                      "defaultValue": "no"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "dafe5cf9-7add-402f-b8d1-74eebb483c48": {
                      "mountPath": "/bitnami"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Main",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T16:14:44.185Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T12:05:42.251Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c7a51d34faf9488fa205",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 169,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Worker"
  }
}
