{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c0370db3-1934-4158-ad1b-0193c6e9adb6",
    "slug": "n8n-2-ai-agent-stack-ollama-qdrant",
    "name": "n8n 2 AI Agent Stack (Ollama + Qdrant)",
    "description": "n8n queue mode with workers, local LLMs via Ollama and Qdrant memory.",
    "url": "https://railway.com/deploy/n8n-2-ai-agent-stack-ollama-qdrant",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/n8n-ai-stack-railway"
    }
  },
  "services": [
    {
      "name": "Qdrant",
      "source": {
        "image": "qdrant/qdrant:v1.19.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/qdrant/storage",
      "http": false
    },
    {
      "name": "n8n Webhook",
      "source": {
        "image": "n8nio/n8n:2.42.6"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "n8n Task Runners",
      "source": {
        "image": "n8nio/runners:2.42.6"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Ollama",
      "source": {
        "repo": "https://github.com/baranberkay96/n8n-ai-stack-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "Gateway",
      "source": {
        "repo": "https://github.com/baranberkay96/n8n-ai-stack-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "n8n Main",
      "source": {
        "image": "n8nio/n8n:2.42.6"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "n8n Bootstrap",
      "source": {
        "repo": "https://github.com/baranberkay96/n8n-ai-stack-railway"
      },
      "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
    },
    {
      "name": "n8n Worker",
      "source": {
        "image": "n8nio/n8n:2.42.6"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Qdrant",
      "description": "Qdrant REST port (gRPC 6334).",
      "secret": false,
      "strategy": "default",
      "default": "6333"
    },
    {
      "key": "QDRANT__SERVICE__HOST",
      "service": "Qdrant",
      "description": "Listen on IPv4+IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "QDRANT__SERVICE__API_KEY",
      "service": "Qdrant",
      "description": "API key required for all Qdrant requests.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "QDRANT__TELEMETRY_DISABLED",
      "service": "Qdrant",
      "description": "Disable Qdrant telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "n8n Webhook",
      "description": "Port Railway health-checks.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n Webhook",
      "description": "Database type.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n Webhook",
      "description": "n8n HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n Webhook",
      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LOG_LEVEL",
      "service": "n8n Webhook",
      "description": "Log level.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n Webhook",
      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n Webhook",
      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n Webhook",
      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n Webhook",
      "description": "Postgres private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n Webhook",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n Webhook",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n Webhook",
      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "n8n Webhook",
      "description": "Listen on IPv4+IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n Webhook",
      "description": "Redis private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n Webhook",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n Webhook",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n Webhook",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n Webhook",
      "description": "Disable anonymous telemetry.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n Webhook",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "n8n Webhook",
      "description": "Redis user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n Webhook",
      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n Webhook",
      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_REINSTALL_MISSING_PACKAGES",
      "service": "n8n Webhook",
      "description": "Reinstall community nodes on boot (no shared volume between processes).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_USER_MANAGEMENT_JWT_SECRET",
      "service": "n8n Webhook",
      "description": "Signs login sessions; identical on every n8n process.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n Webhook",
      "description": "Strict permissions on the n8n settings file.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "n8n Task Runners",
      "description": "Launcher health port (Railway healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "5680"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n Task Runners",
      "description": "Timezone for Code nodes.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n Task Runners",
      "description": "Must equal the worker's token.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_MAX_CONCURRENCY",
      "service": "n8n Task Runners",
      "description": "Concurrent Code-node tasks per runner (matches worker concurrency).",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "N8N_RUNNERS_TASK_BROKER_URI",
      "service": "n8n Task Runners",
      "description": "Task broker of the paired worker.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_RUNNERS_LAUNCHER_LOG_LEVEL",
      "service": "n8n Task Runners",
      "description": "Launcher log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT",
      "service": "n8n Task Runners",
      "description": "Stop idle JS/Python runners after N seconds (the launcher restarts them on demand).",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PORT",
      "service": "Ollama",
      "description": "Ollama API port (private).",
      "secret": false,
      "strategy": "default",
      "default": "11434"
    },
    {
      "key": "OLLAMA_HOST",
      "service": "Ollama",
      "description": "Bind address for the Ollama API (IPv4+IPv6).",
      "secret": false,
      "strategy": "default",
      "default": "[::]:11434"
    },
    {
      "key": "OLLAMA_KEEP_ALIVE",
      "service": "Ollama",
      "description": "Unload idle models after this time to free RAM.",
      "secret": false,
      "strategy": "default",
      "default": "5m"
    },
    {
      "key": "OLLAMA_PULL_MODELS",
      "service": "Ollama",
      "description": "Models pulled on first boot (comma-separated). Chat model + embedding model for Qdrant RAG.",
      "secret": false,
      "strategy": "default",
      "default": "llama3.2:3b,nomic-embed-text:v1.5"
    },
    {
      "key": "OLLAMA_CONTEXT_LENGTH",
      "service": "Ollama",
      "description": "Default context window (agents with tools need more than 4k).",
      "secret": false,
      "strategy": "default",
      "default": "8192"
    },
    {
      "key": "OLLAMA_MAX_LOADED_MODELS",
      "service": "Ollama",
      "description": "Keep chat + embedding model loaded together.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PORT",
      "service": "Gateway",
      "description": "Port nginx listens on (public domain target).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NGINX_PROXY_TIMEOUT",
      "service": "Gateway",
      "description": "Proxy timeout for long webhook responses and push connections.",
      "secret": false,
      "strategy": "default",
      "default": "3600s"
    },
    {
      "key": "N8N_GW_MAIN_UPSTREAM",
      "service": "Gateway",
      "description": "n8n main (editor, API, push, test webhooks).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_GW_WEBHOOK_UPSTREAM",
      "service": "Gateway",
      "description": "Webhook processor (/webhook, /webhook-waiting, /form, /form-waiting, /mcp).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NGINX_CLIENT_MAX_BODY_SIZE",
      "service": "Gateway",
      "description": "Max request size (form uploads, binary webhooks).",
      "secret": false,
      "strategy": "default",
      "default": "200M"
    },
    {
      "key": "PORT",
      "service": "n8n Main",
      "description": "Port Railway health-checks.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n Main",
      "description": "Database type.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n Main",
      "description": "n8n HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n Main",
      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_LOG_LEVEL",
      "service": "n8n Main",
      "description": "Log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n Main",
      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n Main",
      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n Main",
      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n Main",
      "description": "Postgres private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n Main",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n Main",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n Main",
      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_LISTEN_ADDRESS",
      "service": "n8n Main",
      "description": "Listen on IPv4+IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n Main",
      "description": "Public editor URL (links in emails, OAuth callbacks).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n Main",
      "description": "Redis private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n Main",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n Main",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n Main",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n Main",
      "description": "Disable anonymous telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n Main",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "n8n Main",
      "description": "Redis user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n Main",
      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_PERSONALIZATION_ENABLED",
      "service": "n8n Main",
      "description": "Skip the onboarding survey.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n Main",
      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "N8N_REINSTALL_MISSING_PACKAGES",
      "service": "n8n Main",
      "description": "Reinstall community nodes on boot (no shared volume between processes).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_USER_MANAGEMENT_JWT_SECRET",
      "service": "n8n Main",
      "description": "Signs login sessions; identical on every n8n process.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_DISABLE_PRODUCTION_MAIN_PROCESS",
      "service": "n8n Main",
      "description": "Production webhooks are served by the n8n Webhook service via the Gateway.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "n8n Main",
      "description": "Run editor/test executions on workers too (main never runs Code nodes).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n Main",
      "description": "Strict permissions on the n8n settings file.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n Bootstrap",
      "description": "Database type.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_URL",
      "service": "n8n Bootstrap",
      "description": "URL stored in the seeded Qdrant credential.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_LOG_LEVEL",
      "service": "n8n Bootstrap",
      "description": "Keep CLI output short.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "QDRANT_API_KEY",
      "service": "n8n Bootstrap",
      "description": "API key stored in the seeded Qdrant credential.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEMO_CHAT_MODEL",
      "service": "n8n Bootstrap",
      "description": "Model used by the seeded demo workflow.",
      "secret": false,
      "strategy": "default",
      "default": "llama3.2:3b"
    },
    {
      "key": "OLLAMA_BASE_URL",
      "service": "n8n Bootstrap",
      "description": "Base URL stored in the seeded Ollama credential.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n Bootstrap",
      "description": "Postgres private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n Bootstrap",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n Bootstrap",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n Bootstrap",
      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_MAIN_READY_URL",
      "service": "n8n Bootstrap",
      "description": "Waits until n8n main has migrated the database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n Bootstrap",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n Bootstrap",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "n8n Worker",
      "description": "Port of the worker health server (Railway healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n Worker",
      "description": "Database type.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n Worker",
      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_LOG_LEVEL",
      "service": "n8n Worker",
      "description": "Log level.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n Worker",
      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n Worker",
      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n Worker",
      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n Worker",
      "description": "Code nodes run in the separate n8n Task Runners service (n8n's production recommendation).",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n Worker",
      "description": "Postgres private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n Worker",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n Worker",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n Worker",
      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n Worker",
      "description": "Redis private host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n Worker",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n Worker",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n Worker",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n Worker",
      "description": "Shared secret between this worker's task broker and the runners.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n Worker",
      "description": "Disable anonymous telemetry.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_BROKER_PORT",
      "service": "n8n Worker",
      "description": "Task broker port.",
      "secret": false,
      "strategy": "default",
      "default": "5679"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_PORT",
      "service": "n8n Worker",
      "description": "Worker health server port.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n Worker",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "n8n Worker",
      "description": "Redis user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n Worker",
      "description": "Expose /healthz and /healthz/readiness on the worker.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n Worker",
      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DEFAULT_BINARY_DATA_MODE",
      "service": "n8n Worker",
      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "n8n Worker",
      "description": "Seconds to finish running jobs on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "N8N_REINSTALL_MISSING_PACKAGES",
      "service": "n8n Worker",
      "description": "Reinstall community nodes on boot (no shared volume between processes).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_USER_MANAGEMENT_JWT_SECRET",
      "service": "n8n Worker",
      "description": "Signs login sessions; identical on every n8n process.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_TASK_REQUEST_TIMEOUT",
      "service": "n8n Worker",
      "description": "Seconds a Code node waits for a free runner.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "N8N_RUNNERS_BROKER_LISTEN_ADDRESS",
      "service": "n8n Worker",
      "description": "Task broker listens on the private network (IPv4+IPv6).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n Worker",
      "description": "Strict permissions on the n8n settings file.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-2-ai-agent-stack-ollama-qdrant"
      }
    },
    "cli": "railway deploy --template n8n-2-ai-agent-stack-ollama-qdrant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c0370db3-1934-4158-ad1b-0193c6e9adb6",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "01a60704-c172-5b77-b198-224fafe51e9f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/qdrant.svg",
                  "name": "Qdrant",
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "qdrant/qdrant:v1.19.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Qdrant REST port (gRPC 6334).",
                      "defaultValue": "6333"
                    },
                    "QDRANT__SERVICE__HOST": {
                      "isOptional": true,
                      "description": "Listen on IPv4+IPv6.",
                      "defaultValue": "::"
                    },
                    "QDRANT__SERVICE__API_KEY": {
                      "isOptional": true,
                      "description": "API key required for all Qdrant requests.",
                      "defaultValue": "{{QDRANT__SERVICE__API_KEY}}"
                    },
                    "QDRANT__TELEMETRY_DISABLED": {
                      "isOptional": true,
                      "description": "Disable Qdrant telemetry.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "cdcba452-f84a-5a34-8db1-38406423b9de": {
                      "mountPath": "/qdrant/storage"
                    }
                  }
                },
                "0faef773-7cb7-5ef3-9e66-03632f46a8b7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n Webhook",
                  "deploy": {
                    "startCommand": "tini -- /docker-entrypoint.sh webhook",
                    "healthcheckPath": "/healthz/readiness",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.42.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Railway health-checks.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": true,
                      "description": "Database type.",
                      "defaultValue": "${{n8n Main.DB_TYPE}}"
                    },
                    "N8N_PORT": {
                      "isOptional": true,
                      "description": "n8n HTTP port.",
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": true,
                      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
                      "defaultValue": "${{n8n Main.WEBHOOK_URL}}"
                    },
                    "N8N_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level.",
                      "defaultValue": "${{n8n Main.N8N_LOG_LEVEL}}"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": true,
                      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
                      "defaultValue": "${{n8n Main.N8N_PROXY_HOPS}}"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": true,
                      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
                      "defaultValue": "${{n8n Main.EXECUTIONS_MODE}}"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
                      "defaultValue": "${{n8n Main.GENERIC_TIMEZONE}}"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": true,
                      "description": "Postgres private host.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_HOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
                      "defaultValue": "${{n8n Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "isOptional": true,
                      "description": "Listen on IPv4+IPv6.",
                      "defaultValue": "::"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis private host.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_HOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_PORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_DATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PASSWORD}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "isOptional": true,
                      "description": "Disable anonymous telemetry.",
                      "defaultValue": "${{n8n Main.N8N_DIAGNOSTICS_ENABLED}}"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "isOptional": true,
                      "description": "Redis user.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_USERNAME}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": true,
                      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_DUALSTACK}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": true,
                      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
                      "defaultValue": "${{n8n Main.N8N_DEFAULT_BINARY_DATA_MODE}}"
                    },
                    "N8N_REINSTALL_MISSING_PACKAGES": {
                      "isOptional": true,
                      "description": "Reinstall community nodes on boot (no shared volume between processes).",
                      "defaultValue": "${{n8n Main.N8N_REINSTALL_MISSING_PACKAGES}}"
                    },
                    "N8N_USER_MANAGEMENT_JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs login sessions; identical on every n8n process.",
                      "defaultValue": "${{n8n Main.N8N_USER_MANAGEMENT_JWT_SECRET}}"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": true,
                      "description": "Strict permissions on the n8n settings file.",
                      "defaultValue": "${{n8n Main.N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "178ae9a3-249c-54c6-9ef5-58f8fec9bd0e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n Task Runners",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/runners:2.42.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Launcher health port (Railway healthcheck).",
                      "defaultValue": "5680"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Timezone for Code nodes.",
                      "defaultValue": "${{n8n Main.GENERIC_TIMEZONE}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Must equal the worker's token.",
                      "defaultValue": "${{n8n Worker.N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_MAX_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Concurrent Code-node tasks per runner (matches worker concurrency).",
                      "defaultValue": "10"
                    },
                    "N8N_RUNNERS_TASK_BROKER_URI": {
                      "isOptional": true,
                      "description": "Task broker of the paired worker.",
                      "defaultValue": "http://${{n8n Worker.RAILWAY_PRIVATE_DOMAIN}}:5679"
                    },
                    "N8N_RUNNERS_LAUNCHER_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Launcher log level.",
                      "defaultValue": "info"
                    },
                    "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT": {
                      "isOptional": true,
                      "description": "Stop idle JS/Python runners after N seconds (the launcher restarts them on demand).",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "5c81449f-ca84-50be-bcf7-ae6e1c97b58b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/ollama.svg",
                  "name": "Ollama",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/n8n-ai-stack-railway",
                    "branch": "main",
                    "rootDirectory": "/services/ollama"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Ollama API port (private).",
                      "defaultValue": "11434"
                    },
                    "OLLAMA_HOST": {
                      "isOptional": true,
                      "description": "Bind address for the Ollama API (IPv4+IPv6).",
                      "defaultValue": "[::]:11434"
                    },
                    "OLLAMA_KEEP_ALIVE": {
                      "isOptional": true,
                      "description": "Unload idle models after this time to free RAM.",
                      "defaultValue": "5m"
                    },
                    "OLLAMA_PULL_MODELS": {
                      "isOptional": true,
                      "description": "Models pulled on first boot (comma-separated). Chat model + embedding model for Qdrant RAG.",
                      "defaultValue": "llama3.2:3b,nomic-embed-text:v1.5"
                    },
                    "OLLAMA_CONTEXT_LENGTH": {
                      "isOptional": true,
                      "description": "Default context window (agents with tools need more than 4k).",
                      "defaultValue": "8192"
                    },
                    "OLLAMA_MAX_LOADED_MODELS": {
                      "isOptional": true,
                      "description": "Keep chat + embedding model loaded together.",
                      "defaultValue": "2"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "69c705f5-a1a5-59c3-a2d4-b79dc3f89350": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "82943f54-4953-5f2e-9e4e-3eb8971cdbd8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/nginx.svg",
                  "name": "Gateway",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/gateway-healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/n8n-ai-stack-railway",
                    "branch": "main",
                    "rootDirectory": "/services/gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port nginx listens on (public domain target).",
                      "defaultValue": "8080"
                    },
                    "NGINX_PROXY_TIMEOUT": {
                      "isOptional": true,
                      "description": "Proxy timeout for long webhook responses and push connections.",
                      "defaultValue": "3600s"
                    },
                    "N8N_GW_MAIN_UPSTREAM": {
                      "isOptional": true,
                      "description": "n8n main (editor, API, push, test webhooks).",
                      "defaultValue": "${{n8n Main.RAILWAY_PRIVATE_DOMAIN}}:5678"
                    },
                    "N8N_GW_WEBHOOK_UPSTREAM": {
                      "isOptional": true,
                      "description": "Webhook processor (/webhook, /webhook-waiting, /form, /form-waiting, /mcp).",
                      "defaultValue": "${{n8n Webhook.RAILWAY_PRIVATE_DOMAIN}}:5678"
                    },
                    "NGINX_CLIENT_MAX_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Max request size (form uploads, binary webhooks).",
                      "defaultValue": "200M"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "b1e28e9e-fc0b-5a70-a212-a6139e6b158e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n Main",
                  "deploy": {
                    "healthcheckPath": "/healthz/readiness",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.42.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Railway health-checks.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": true,
                      "description": "Database type.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_PORT": {
                      "isOptional": true,
                      "description": "n8n HTTP port.",
                      "defaultValue": "5678"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": true,
                      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
                      "defaultValue": "https://${{Gateway.RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "N8N_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level.",
                      "defaultValue": "info"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": true,
                      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
                      "defaultValue": "2"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": true,
                      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
                      "defaultValue": "Etc/UTC"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": true,
                      "description": "Postgres private host.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_LISTEN_ADDRESS": {
                      "isOptional": true,
                      "description": "Listen on IPv4+IPv6.",
                      "defaultValue": "::"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "isOptional": true,
                      "description": "Public editor URL (links in emails, OAuth callbacks).",
                      "defaultValue": "https://${{Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis private host.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "isOptional": true,
                      "description": "Disable anonymous telemetry.",
                      "defaultValue": "false"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password.",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "isOptional": true,
                      "description": "Redis user.",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": true,
                      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
                      "defaultValue": "true"
                    },
                    "N8N_PERSONALIZATION_ENABLED": {
                      "isOptional": true,
                      "description": "Skip the onboarding survey.",
                      "defaultValue": "false"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": true,
                      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
                      "defaultValue": "database"
                    },
                    "N8N_REINSTALL_MISSING_PACKAGES": {
                      "isOptional": true,
                      "description": "Reinstall community nodes on boot (no shared volume between processes).",
                      "defaultValue": "true"
                    },
                    "N8N_USER_MANAGEMENT_JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs login sessions; identical on every n8n process.",
                      "defaultValue": "{{N8N_USER_MANAGEMENT_JWT_SECRET}}"
                    },
                    "N8N_DISABLE_PRODUCTION_MAIN_PROCESS": {
                      "isOptional": true,
                      "description": "Production webhooks are served by the n8n Webhook service via the Gateway.",
                      "defaultValue": "true"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "isOptional": true,
                      "description": "Run editor/test executions on workers too (main never runs Code nodes).",
                      "defaultValue": "true"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": true,
                      "description": "Strict permissions on the n8n settings file.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "b41f843e-edfb-57b1-8260-4b370226e55e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n Bootstrap",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "baranberkay96/n8n-ai-stack-railway",
                    "branch": "main",
                    "rootDirectory": "/services/bootstrap"
                  },
                  "variables": {
                    "DB_TYPE": {
                      "isOptional": true,
                      "description": "Database type.",
                      "defaultValue": "${{n8n Main.DB_TYPE}}"
                    },
                    "QDRANT_URL": {
                      "isOptional": true,
                      "description": "URL stored in the seeded Qdrant credential.",
                      "defaultValue": "http://${{Qdrant.RAILWAY_PRIVATE_DOMAIN}}:6333"
                    },
                    "N8N_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Keep CLI output short.",
                      "defaultValue": "warn"
                    },
                    "QDRANT_API_KEY": {
                      "isOptional": true,
                      "description": "API key stored in the seeded Qdrant credential.",
                      "defaultValue": "${{Qdrant.QDRANT__SERVICE__API_KEY}}"
                    },
                    "DEMO_CHAT_MODEL": {
                      "isOptional": true,
                      "description": "Model used by the seeded demo workflow.",
                      "defaultValue": "llama3.2:3b"
                    },
                    "OLLAMA_BASE_URL": {
                      "isOptional": true,
                      "description": "Base URL stored in the seeded Ollama credential.",
                      "defaultValue": "http://${{Ollama.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": true,
                      "description": "Postgres private host.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_HOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
                      "defaultValue": "${{n8n Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_MAIN_READY_URL": {
                      "isOptional": true,
                      "description": "Waits until n8n main has migrated the database.",
                      "defaultValue": "http://${{n8n Main.RAILWAY_PRIVATE_DOMAIN}}:5678/healthz/readiness"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_DATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "cfa084be-08c2-5e14-96c8-08f6543d31ea": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "e46c7c13-3da3-5b08-bb1e-d2b1fbd92195": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d59a4fd0-cf76-5477-9a09-6842e351c06f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "n8n Worker",
                  "deploy": {
                    "startCommand": "tini -- /docker-entrypoint.sh worker --concurrency=10",
                    "healthcheckPath": "/healthz/readiness",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.42.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the worker health server (Railway healthcheck).",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": true,
                      "description": "Database type.",
                      "defaultValue": "${{n8n Main.DB_TYPE}}"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": true,
                      "description": "Public base for webhook, form, chat and MCP URLs (the Gateway).",
                      "defaultValue": "${{n8n Main.WEBHOOK_URL}}"
                    },
                    "N8N_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level.",
                      "defaultValue": "${{n8n Main.N8N_LOG_LEVEL}}"
                    },
                    "N8N_PROXY_HOPS": {
                      "isOptional": true,
                      "description": "Trusted proxies in front of n8n (Railway edge + Gateway) for correct client IPs.",
                      "defaultValue": "${{n8n Main.N8N_PROXY_HOPS}}"
                    },
                    "EXECUTIONS_MODE": {
                      "isOptional": true,
                      "description": "Queue mode: main/webhook enqueue executions in Redis, workers run them.",
                      "defaultValue": "${{n8n Main.EXECUTIONS_MODE}}"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Default timezone for schedules (e.g. Europe/Istanbul).",
                      "defaultValue": "${{n8n Main.GENERIC_TIMEZONE}}"
                    },
                    "N8N_RUNNERS_MODE": {
                      "isOptional": true,
                      "description": "Code nodes run in the separate n8n Task Runners service (n8n's production recommendation).",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": true,
                      "description": "Postgres private host.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_HOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_USER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encrypts stored credentials; identical on every n8n process. Never change after first boot.",
                      "defaultValue": "${{n8n Main.N8N_ENCRYPTION_KEY}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis private host.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_HOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_PORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_DATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{n8n Main.DB_POSTGRESDB_PASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Shared secret between this worker's task broker and the runners.",
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "isOptional": true,
                      "description": "Disable anonymous telemetry.",
                      "defaultValue": "${{n8n Main.N8N_DIAGNOSTICS_ENABLED}}"
                    },
                    "N8N_RUNNERS_BROKER_PORT": {
                      "isOptional": true,
                      "description": "Task broker port.",
                      "defaultValue": "5679"
                    },
                    "QUEUE_HEALTH_CHECK_PORT": {
                      "isOptional": true,
                      "description": "Worker health server port.",
                      "defaultValue": "5678"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "isOptional": true,
                      "description": "Redis user.",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_USERNAME}}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "isOptional": true,
                      "description": "Expose /healthz and /healthz/readiness on the worker.",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "isOptional": true,
                      "description": "Resolve Redis over IPv4 and IPv6 (Railway private network).",
                      "defaultValue": "${{n8n Main.QUEUE_BULL_REDIS_DUALSTACK}}"
                    },
                    "N8N_DEFAULT_BINARY_DATA_MODE": {
                      "isOptional": true,
                      "description": "Binary data in Postgres so main, webhook and workers share files (filesystem mode is unsupported in queue mode).",
                      "defaultValue": "${{n8n Main.N8N_DEFAULT_BINARY_DATA_MODE}}"
                    },
                    "N8N_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "isOptional": true,
                      "description": "Seconds to finish running jobs on redeploy.",
                      "defaultValue": "30"
                    },
                    "N8N_REINSTALL_MISSING_PACKAGES": {
                      "isOptional": true,
                      "description": "Reinstall community nodes on boot (no shared volume between processes).",
                      "defaultValue": "${{n8n Main.N8N_REINSTALL_MISSING_PACKAGES}}"
                    },
                    "N8N_USER_MANAGEMENT_JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs login sessions; identical on every n8n process.",
                      "defaultValue": "${{n8n Main.N8N_USER_MANAGEMENT_JWT_SECRET}}"
                    },
                    "N8N_RUNNERS_TASK_REQUEST_TIMEOUT": {
                      "isOptional": true,
                      "description": "Seconds a Code node waits for a free runner.",
                      "defaultValue": "60"
                    },
                    "N8N_RUNNERS_BROKER_LISTEN_ADDRESS": {
                      "isOptional": true,
                      "description": "Task broker listens on the private network (IPv4+IPv6).",
                      "defaultValue": "::"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": true,
                      "description": "Strict permissions on the n8n settings file.",
                      "defaultValue": "${{n8n Main.N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "e554b0ff-4132-56a3-8f74-74bf60fd7ec0": {
                  "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\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "bb1153b6-4490-5b83-9a0b-e006c25b9086": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Gateway",
      "method": "GET",
      "path": "/gateway-healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 10,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:44:37.824Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0b514b1818004339891f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 326,
    "typical_build_seconds": 101,
    "typical_start_seconds": 30,
    "slowest_service": "n8n Bootstrap"
  }
}
