{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c2493fd7-c831-4dc4-8fb9-812913d62829",
    "slug": "evolution-api-23-n8n-247",
    "name": "Evolution API 2.3 + n8n 2.47",
    "description": "WhatsApp automations and AI agents: Evolution API 2.3 + n8n in queue mode",
    "url": "https://railway.com/deploy/evolution-api-23-n8n-247",
    "upstream": {
      "image": "evoapicloud/evolution-api:v2.3.7"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Evolution API",
      "source": {
        "image": "evoapicloud/evolution-api:v2.3.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/evolution/instances",
      "http": true
    },
    {
      "name": "n8n-runner",
      "source": {
        "image": "n8nio/runners:2.47.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Evolution Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "n8n Redis",
      "source": {
        "image": "redis:8.10"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Evolution Redis",
      "source": {
        "image": "redis:8.10"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "n8n 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.47.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "n8n",
      "source": {
        "image": "n8nio/n8n:2.47.3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Evolution API",
      "description": "Time zone (the image defaults to America/Sao_Paulo)",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Evolution API",
      "description": "Port Evolution API listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LANGUAGE",
      "service": "Evolution API",
      "description": "Manager and message language",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Evolution API",
      "description": "Log levels to print",
      "secret": false,
      "strategy": "default",
      "default": "ERROR,WARN,INFO,LOG,WEBHOOKS"
    },
    {
      "key": "SERVER_URL",
      "service": "Evolution API",
      "description": "Public URL of this service, used in webhooks and media links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CORS_ORIGIN",
      "service": "Evolution API",
      "description": "Allowed browser origins",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "LOG_BAILEYS",
      "service": "Evolution API",
      "description": "WhatsApp library log level",
      "secret": false,
      "strategy": "default",
      "default": "error"
    },
    {
      "key": "N8N_ENABLED",
      "service": "Evolution API",
      "description": "Turn on the n8n integration (Integrations > n8n in the manager, /n8n/* in the API)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SERVER_PORT",
      "service": "Evolution API",
      "description": "Same as PORT",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_TYPE",
      "service": "Evolution API",
      "description": "Plain HTTP inside Railway; Railway terminates TLS",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "DEL_INSTANCE",
      "service": "Evolution API",
      "description": "Minutes before a disconnected instance is deleted; false keeps it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_REDIS_URI",
      "service": "Evolution API",
      "description": "Redis connection URL (private network)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PROVIDER",
      "service": "Evolution API",
      "description": "Database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Evolution API",
      "description": "Send usage telemetry to the Evolution API project",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_LOCAL_ENABLED",
      "service": "Evolution API",
      "description": "In-memory cache (off; Redis is used)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_REDIS_ENABLED",
      "service": "Evolution API",
      "description": "Use Redis for cache",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTHENTICATION_API_KEY",
      "service": "Evolution API",
      "description": "Global API key (generated). Send it as the apikey header and use it to log in to the manager at /manager",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CACHE_REDIS_PREFIX_KEY",
      "service": "Evolution API",
      "description": "Prefix for Redis keys",
      "secret": true,
      "strategy": "default",
      "default": "evolution"
    },
    {
      "key": "DATABASE_CONNECTION_URI",
      "service": "Evolution API",
      "description": "Postgres connection URL (private network)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_SAVE_DATA_CHATS",
      "service": "Evolution API",
      "description": "Store chats",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_LABELS",
      "service": "Evolution API",
      "description": "Store labels",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CACHE_REDIS_SAVE_INSTANCES",
      "service": "Evolution API",
      "description": "Keep WhatsApp sessions in Postgres, not Redis",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_SAVE_DATA_CONTACTS",
      "service": "Evolution API",
      "description": "Store contacts",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_HISTORIC",
      "service": "Evolution API",
      "description": "Store history synced from the phone",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_INSTANCE",
      "service": "Evolution API",
      "description": "Store instances in Postgres",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_MESSAGE_UPDATE",
      "service": "Evolution API",
      "description": "Store message status updates",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_NEW_MESSAGE",
      "service": "Evolution API",
      "description": "Store new messages",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_CONNECTION_CLIENT_NAME",
      "service": "Evolution API",
      "description": "Name of this installation in the database",
      "secret": false,
      "strategy": "default",
      "default": "evolution"
    },
    {
      "key": "AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES",
      "service": "Evolution API",
      "description": "Show instances in fetchInstances",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n-runner",
      "description": "Shared with n8n (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n-runner",
      "description": "Shared with n8n-worker (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_TASK_TIMEOUT",
      "service": "n8n-runner",
      "description": "Shared with n8n-worker (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_MAX_CONCURRENCY",
      "service": "n8n-runner",
      "description": "Code node tasks run at the same time",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "N8N_RUNNERS_TASK_BROKER_URI",
      "service": "n8n-runner",
      "description": "Task broker on n8n-worker (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT",
      "service": "n8n-runner",
      "description": "Seconds of idle time before the runner processes stop (restarted on demand)",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PGDATA",
      "service": "Evolution Postgres",
      "description": "Data directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Evolution Postgres",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Evolution Postgres",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Evolution Postgres",
      "description": "Same as POSTGRES_USER",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Evolution Postgres",
      "description": "Same as POSTGRES_DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Evolution Postgres",
      "description": "Same as POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Evolution Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Evolution Postgres",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Evolution Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Evolution Postgres",
      "description": "Validity of the generated SSL certificate, in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Evolution Postgres",
      "description": "Postgres password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Evolution Postgres",
      "description": "Seconds to let Postgres shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDISHOST",
      "service": "n8n Redis",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "n8n Redis",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "n8n Redis",
      "description": "Redis user",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "n8n Redis",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "n8n Redis",
      "description": "Same as REDIS_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "n8n Redis",
      "description": "Redis password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Evolution Redis",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Evolution Redis",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Evolution Redis",
      "description": "Redis user",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Evolution Redis",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Evolution Redis",
      "description": "Same as REDIS_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Evolution Redis",
      "description": "Redis password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "n8n Postgres",
      "description": "Data directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "n8n Postgres",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "n8n Postgres",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "n8n Postgres",
      "description": "Same as POSTGRES_USER",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "n8n Postgres",
      "description": "Same as POSTGRES_DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "n8n Postgres",
      "description": "Same as POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "n8n Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "n8n Postgres",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "n8n Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "n8n Postgres",
      "description": "Validity of the generated SSL certificate, in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "n8n Postgres",
      "description": "Postgres password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "n8n Postgres",
      "description": "Seconds to let Postgres shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "n8n-worker",
      "description": "Health check port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-worker",
      "description": "n8n database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n-worker",
      "description": "Public webhook base, for resume URLs (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n-worker",
      "description": "Queue mode: the main instance enqueues executions in Redis, n8n-worker runs them",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "GENERIC_TIMEZONE",
      "service": "n8n-worker",
      "description": "Shared with n8n (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n-worker",
      "description": "Code nodes run in the n8n-runner service",
      "secret": false,
      "strategy": "default",
      "default": "external"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-worker",
      "description": "n8n Postgres private host (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-worker",
      "description": "n8n Postgres port (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-worker",
      "description": "n8n Postgres user (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n-worker",
      "description": "Shared with n8n (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n-worker",
      "description": "n8n Redis private host (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n-worker",
      "description": "n8n Redis port (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-worker",
      "description": "n8n Postgres database (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-worker",
      "description": "n8n Postgres password (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_AUTH_TOKEN",
      "service": "n8n-worker",
      "description": "Shared secret between n8n-worker and n8n-runner (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n-worker",
      "description": "Send anonymous telemetry to n8n",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "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": "Health check port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_RUNNERS_TASK_TIMEOUT",
      "service": "n8n-worker",
      "description": "Seconds before a Code node task is stopped (also used by n8n-runner)",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n-worker",
      "description": "n8n Redis password (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "n8n-worker",
      "description": "n8n Redis user (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n-worker",
      "description": "Serve /healthz for the Railway healthcheck",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n-worker",
      "description": "Resolve the Redis host over IPv4 and IPv6 (Railway private network)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_REINSTALL_MISSING_PACKAGES",
      "service": "n8n-worker",
      "description": "Reinstall community nodes installed from the UI after a redeploy (n8n has no volume)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_UNVERIFIED_PACKAGES_ENABLED",
      "service": "n8n-worker",
      "description": "Allow installing unverified community nodes from the UI (default changes to false in a future n8n version)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_RUNNERS_BROKER_LISTEN_ADDRESS",
      "service": "n8n-worker",
      "description": "Task broker listens on the private network",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "n8n",
      "description": "n8n port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n",
      "description": "n8n database type",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "n8n",
      "description": "Public domain (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PORT",
      "service": "n8n",
      "description": "n8n port",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "N8N_RUN_SH",
      "service": "n8n",
      "description": "Start script: hashes N8N_OWNER_PASSWORD and starts n8n (do not change)",
      "secret": false,
      "strategy": "default",
      "default": "if [ \"$N8N_INSTANCE_OWNER_MANAGED_BY_ENV\" = \"true\" ] && [ -n \"$N8N_INSTANCE_OWNER_EMAIL\" ] && [ -n \"$N8N_OWNER_PASSWORD\" ]; then\n  N8N_INSTANCE_OWNER_PASSWORD_HASH=$(cd /usr/local/lib/node_modules/n8n && node -e 'process.stdout.write(require(\"bcryptjs\").hashSync(process.env.N8N_OWNER_PASSWORD, 10))') || exit 1\n  export N8N_INSTANCE_OWNER_PASSWORD_HASH\nelse\n  echo \"Owner not managed by env (N8N_INSTANCE_OWNER_MANAGED_BY_ENV, N8N_INSTANCE_OWNER_EMAIL or N8N_OWNER_PASSWORD not set): the owner account is created on the first visit\" >&2\n  export N8N_INSTANCE_OWNER_MANAGED_BY_ENV=false\nfi\nexec tini -- n8n start\n"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "n8n",
      "description": "Public base URL of webhooks (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "n8n",
      "description": "Public protocol",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_PROXY_HOPS",
      "service": "n8n",
      "description": "Trust one proxy hop (Railway edge) for client IPs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EXECUTIONS_MODE",
      "service": "n8n",
      "description": "Queue mode: the main instance enqueues executions in Redis, n8n-worker runs them",
      "secret": false,
      "strategy": "default",
      "default": "queue"
    },
    {
      "key": "N8N_RUNNERS_MODE",
      "service": "n8n",
      "description": "Main runs no executions (all offloaded); its built-in JavaScript runner is a fallback only",
      "secret": false,
      "strategy": "default",
      "default": "internal"
    },
    {
      "key": "EVOLUTION_API_KEY",
      "service": "n8n",
      "description": "Evolution API global key (apikey header) to paste into an n8n credential (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EVOLUTION_API_URL",
      "service": "n8n",
      "description": "Private Evolution API URL to paste into HTTP Request nodes or an Evolution credential (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n",
      "description": "n8n Postgres private host (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n",
      "description": "n8n Postgres port (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n",
      "description": "n8n Postgres user (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_ENCRYPTION_KEY",
      "service": "n8n",
      "description": "Encrypts stored credentials; shared with n8n-worker. Never change it after the first deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "N8N_OWNER_PASSWORD",
      "service": "n8n",
      "description": "Owner password (generated). Read it here after deploy. Change it here, not in the n8n UI: the owner is reset from these variables on every start",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "N8N_EDITOR_BASE_URL",
      "service": "n8n",
      "description": "Public editor URL (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PRIVATE_WEBHOOK_URL",
      "service": "n8n",
      "description": "Private webhook base for Evolution API. Use <this><path> as Webhook URL in Evolution's n8n integration (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_BULL_REDIS_HOST",
      "service": "n8n",
      "description": "n8n Redis private host (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_PORT",
      "service": "n8n",
      "description": "n8n Redis port (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n",
      "description": "n8n Postgres database (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n",
      "description": "n8n Postgres password (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n",
      "description": "Send anonymous telemetry to n8n",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_INSTANCE_OWNER_EMAIL",
      "service": "n8n",
      "description": "Email of the n8n owner account, created at deploy time. You log in with it; change it to your own before deploying",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "QUEUE_BULL_REDIS_PASSWORD",
      "service": "n8n",
      "description": "n8n Redis password (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_BULL_REDIS_USERNAME",
      "service": "n8n",
      "description": "n8n Redis user (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_HEALTH_CHECK_ACTIVE",
      "service": "n8n",
      "description": "Serve /healthz for the Railway healthcheck",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "QUEUE_BULL_REDIS_DUALSTACK",
      "service": "n8n",
      "description": "Resolve the Redis host over IPv4 and IPv6 (Railway private network)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_INSTANCE_OWNER_LAST_NAME",
      "service": "n8n",
      "description": "Owner last name",
      "secret": false,
      "strategy": "default",
      "default": "Owner"
    },
    {
      "key": "N8N_INSTANCE_OWNER_FIRST_NAME",
      "service": "n8n",
      "description": "Owner first name",
      "secret": false,
      "strategy": "default",
      "default": "Instance"
    },
    {
      "key": "N8N_REINSTALL_MISSING_PACKAGES",
      "service": "n8n",
      "description": "Reinstall community nodes installed from the UI after a redeploy (n8n has no volume)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_UNVERIFIED_PACKAGES_ENABLED",
      "service": "n8n",
      "description": "Allow installing unverified community nodes from the UI (default changes to false in a future n8n version)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_INSTANCE_OWNER_MANAGED_BY_ENV",
      "service": "n8n",
      "description": "Create and keep the owner account from N8N_INSTANCE_OWNER_EMAIL / N8N_OWNER_PASSWORD on every start. Set false to manage the owner in the UI",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS",
      "service": "n8n",
      "description": "Run manual executions on n8n-worker too, so Code nodes always use n8n-runner",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "evolution-api-23-n8n-247"
      }
    },
    "cli": "railway deploy --template evolution-api-23-n8n-247",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c2493fd7-c831-4dc4-8fb9-812913d62829",
            "serializedConfig": {
              "services": {
                "2418a7e6-664a-46da-9c55-48e58791c24e": {
                  "icon": "https://avatars.githubusercontent.com/u/136080052?v=4",
                  "name": "Evolution API",
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "evoapicloud/evolution-api:v2.3.7"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Time zone (the image defaults to America/Sao_Paulo)",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "description": "Port Evolution API listens on",
                      "defaultValue": "8080"
                    },
                    "LANGUAGE": {
                      "description": "Manager and message language",
                      "defaultValue": "en"
                    },
                    "LOG_LEVEL": {
                      "description": "Log levels to print",
                      "defaultValue": "ERROR,WARN,INFO,LOG,WEBHOOKS"
                    },
                    "SERVER_URL": {
                      "description": "Public URL of this service, used in webhooks and media links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CORS_ORIGIN": {
                      "description": "Allowed browser origins",
                      "defaultValue": "*"
                    },
                    "LOG_BAILEYS": {
                      "description": "WhatsApp library log level",
                      "defaultValue": "error"
                    },
                    "N8N_ENABLED": {
                      "description": "Turn on the n8n integration (Integrations > n8n in the manager, /n8n/* in the API)",
                      "defaultValue": "true"
                    },
                    "SERVER_PORT": {
                      "description": "Same as PORT",
                      "defaultValue": "${{PORT}}"
                    },
                    "SERVER_TYPE": {
                      "description": "Plain HTTP inside Railway; Railway terminates TLS",
                      "defaultValue": "http"
                    },
                    "DEL_INSTANCE": {
                      "description": "Minutes before a disconnected instance is deleted; false keeps it",
                      "defaultValue": "false"
                    },
                    "CACHE_REDIS_URI": {
                      "description": "Redis connection URL (private network)",
                      "defaultValue": "${{Evolution Redis.REDIS_URL}}"
                    },
                    "DATABASE_PROVIDER": {
                      "description": "Database type",
                      "defaultValue": "postgresql"
                    },
                    "TELEMETRY_ENABLED": {
                      "description": "Send usage telemetry to the Evolution API project",
                      "defaultValue": "false"
                    },
                    "CACHE_LOCAL_ENABLED": {
                      "description": "In-memory cache (off; Redis is used)",
                      "defaultValue": "false"
                    },
                    "CACHE_REDIS_ENABLED": {
                      "description": "Use Redis for cache",
                      "defaultValue": "true"
                    },
                    "AUTHENTICATION_API_KEY": {
                      "description": "Global API key (generated). Send it as the apikey header and use it to log in to the manager at /manager",
                      "defaultValue": "{{AUTHENTICATION_API_KEY}}"
                    },
                    "CACHE_REDIS_PREFIX_KEY": {
                      "description": "Prefix for Redis keys",
                      "defaultValue": "evolution"
                    },
                    "DATABASE_CONNECTION_URI": {
                      "description": "Postgres connection URL (private network)",
                      "defaultValue": "${{Evolution Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_SAVE_DATA_CHATS": {
                      "description": "Store chats",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_LABELS": {
                      "description": "Store labels",
                      "defaultValue": "true"
                    },
                    "CACHE_REDIS_SAVE_INSTANCES": {
                      "description": "Keep WhatsApp sessions in Postgres, not Redis",
                      "defaultValue": "false"
                    },
                    "DATABASE_SAVE_DATA_CONTACTS": {
                      "description": "Store contacts",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_HISTORIC": {
                      "description": "Store history synced from the phone",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_INSTANCE": {
                      "description": "Store instances in Postgres",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_MESSAGE_UPDATE": {
                      "description": "Store message status updates",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_NEW_MESSAGE": {
                      "description": "Store new messages",
                      "defaultValue": "true"
                    },
                    "DATABASE_CONNECTION_CLIENT_NAME": {
                      "description": "Name of this installation in the database",
                      "defaultValue": "evolution"
                    },
                    "AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES": {
                      "description": "Show instances in fetchInstances",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6f7fcf38-5ef1-4025-9617-94ae0fa89e10": {
                      "mountPath": "/evolution/instances"
                    }
                  }
                },
                "700b56be-dce3-4dd0-a51c-7ecb1a878dfe": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/n8n.svg",
                  "name": "n8n-runner",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/runners:2.47.3"
                  },
                  "variables": {
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Shared with n8n (auto-configured)",
                      "defaultValue": "${{n8n.GENERIC_TIMEZONE}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "description": "Shared with n8n-worker (auto-configured)",
                      "defaultValue": "${{n8n-worker.N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_RUNNERS_TASK_TIMEOUT": {
                      "description": "Shared with n8n-worker (auto-configured)",
                      "defaultValue": "${{n8n-worker.N8N_RUNNERS_TASK_TIMEOUT}}"
                    },
                    "N8N_RUNNERS_MAX_CONCURRENCY": {
                      "description": "Code node tasks run at the same time",
                      "defaultValue": "5"
                    },
                    "N8N_RUNNERS_TASK_BROKER_URI": {
                      "description": "Task broker on n8n-worker (auto-configured)",
                      "defaultValue": "http://${{n8n-worker.RAILWAY_PRIVATE_DOMAIN}}:${{n8n-worker.N8N_RUNNERS_BROKER_PORT}}"
                    },
                    "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT": {
                      "description": "Seconds of idle time before the runner processes stop (restarted on demand)",
                      "defaultValue": "15"
                    }
                  }
                },
                "7f5db68d-04eb-4535-8e04-30ffbc370c61": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Evolution Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Data directory on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Same as POSTGRES_USER",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Same as POSTGRES_DB",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Same as POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "Validity of the generated SSL certificate, in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Postgres password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds to let Postgres shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "9fb2eed4-35e8-418c-8f0b-4e028e82ce51": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "810b131e-3c05-4703-97a4-6590ece29da6": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "n8n Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --appendonly yes --maxmemory-policy noeviction --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10"
                  },
                  "variables": {
                    "REDISHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "description": "Redis user",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "description": "Same as REDIS_PASSWORD",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Redis password (generated)",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5df56522-7e8d-4140-b718-9f7ebd5f4308": {
                      "mountPath": "/data"
                    }
                  }
                },
                "96ec38a5-6a31-4cb6-b288-bcccc9a9a778": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Evolution Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --appendonly yes --maxmemory-policy noeviction --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10"
                  },
                  "variables": {
                    "REDISHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "description": "Redis user",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "description": "Same as REDIS_PASSWORD",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Redis password (generated)",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "af71b393-5016-4a06-91be-e1ea9b0bd654": {
                      "mountPath": "/data"
                    }
                  }
                },
                "abc9eeee-8210-49e0-97c5-6f30d88ed48b": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "n8n Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Data directory on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Same as POSTGRES_USER",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Same as POSTGRES_DB",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Same as POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "Validity of the generated SSL certificate, in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Postgres password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds to let Postgres shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "b8aaa706-9c06-4c5c-bd44-399942deab17": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "cc86923b-cd3a-4de5-9ca6-08b0c97b92c0": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/n8n.svg",
                  "name": "n8n-worker",
                  "deploy": {
                    "startCommand": "tini -- n8n worker",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.47.3"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Health check port",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "description": "n8n database type",
                      "defaultValue": "postgresdb"
                    },
                    "WEBHOOK_URL": {
                      "description": "Public webhook base, for resume URLs (auto-configured)",
                      "defaultValue": "${{n8n.WEBHOOK_URL}}"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Queue mode: the main instance enqueues executions in Redis, n8n-worker runs them",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Shared with n8n (auto-configured)",
                      "defaultValue": "${{n8n.GENERIC_TIMEZONE}}"
                    },
                    "N8N_RUNNERS_MODE": {
                      "description": "Code nodes run in the n8n-runner service",
                      "defaultValue": "external"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "n8n Postgres private host (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "n8n Postgres port (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "n8n Postgres user (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGUSER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Shared with n8n (auto-configured)",
                      "defaultValue": "${{n8n.N8N_ENCRYPTION_KEY}}"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "n8n Redis private host (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "n8n Redis port (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "n8n Postgres database (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "n8n Postgres password (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGPASSWORD}}"
                    },
                    "N8N_RUNNERS_AUTH_TOKEN": {
                      "description": "Shared secret between n8n-worker and n8n-runner (generated)",
                      "defaultValue": "{{N8N_RUNNERS_AUTH_TOKEN}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Send anonymous telemetry to n8n",
                      "defaultValue": "false"
                    },
                    "N8N_RUNNERS_BROKER_PORT": {
                      "description": "Task broker port",
                      "defaultValue": "5679"
                    },
                    "QUEUE_HEALTH_CHECK_PORT": {
                      "description": "Health check port",
                      "defaultValue": "5678"
                    },
                    "N8N_RUNNERS_TASK_TIMEOUT": {
                      "description": "Seconds before a Code node task is stopped (also used by n8n-runner)",
                      "defaultValue": "300"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "n8n Redis password (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "n8n Redis user (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISUSER}}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "description": "Serve /healthz for the Railway healthcheck",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Resolve the Redis host over IPv4 and IPv6 (Railway private network)",
                      "defaultValue": "true"
                    },
                    "N8N_REINSTALL_MISSING_PACKAGES": {
                      "description": "Reinstall community nodes installed from the UI after a redeploy (n8n has no volume)",
                      "defaultValue": "true"
                    },
                    "N8N_UNVERIFIED_PACKAGES_ENABLED": {
                      "description": "Allow installing unverified community nodes from the UI (default changes to false in a future n8n version)",
                      "defaultValue": "true"
                    },
                    "N8N_RUNNERS_BROKER_LISTEN_ADDRESS": {
                      "description": "Task broker listens on the private network",
                      "defaultValue": "::"
                    }
                  }
                },
                "ff2ce01d-99e3-494b-adf8-24bb80dd625c": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/n8n.svg",
                  "name": "n8n",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"printenv N8N_RUN_SH > /tmp/run.sh && exec sh /tmp/run.sh\"",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "n8nio/n8n:2.47.3"
                  },
                  "variables": {
                    "PORT": {
                      "description": "n8n port",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "description": "n8n database type",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "description": "Public domain (auto-configured)",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "N8N_PORT": {
                      "description": "n8n port",
                      "defaultValue": "5678"
                    },
                    "N8N_RUN_SH": {
                      "description": "Start script: hashes N8N_OWNER_PASSWORD and starts n8n (do not change)",
                      "defaultValue": "if [ \"$N8N_INSTANCE_OWNER_MANAGED_BY_ENV\" = \"true\" ] && [ -n \"$N8N_INSTANCE_OWNER_EMAIL\" ] && [ -n \"$N8N_OWNER_PASSWORD\" ]; then\n  N8N_INSTANCE_OWNER_PASSWORD_HASH=$(cd /usr/local/lib/node_modules/n8n && node -e 'process.stdout.write(require(\"bcryptjs\").hashSync(process.env.N8N_OWNER_PASSWORD, 10))') || exit 1\n  export N8N_INSTANCE_OWNER_PASSWORD_HASH\nelse\n  echo \"Owner not managed by env (N8N_INSTANCE_OWNER_MANAGED_BY_ENV, N8N_INSTANCE_OWNER_EMAIL or N8N_OWNER_PASSWORD not set): the owner account is created on the first visit\" >&2\n  export N8N_INSTANCE_OWNER_MANAGED_BY_ENV=false\nfi\nexec tini -- n8n start\n"
                    },
                    "WEBHOOK_URL": {
                      "description": "Public base URL of webhooks (auto-configured)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "N8N_PROTOCOL": {
                      "description": "Public protocol",
                      "defaultValue": "https"
                    },
                    "N8N_PROXY_HOPS": {
                      "description": "Trust one proxy hop (Railway edge) for client IPs",
                      "defaultValue": "1"
                    },
                    "EXECUTIONS_MODE": {
                      "description": "Queue mode: the main instance enqueues executions in Redis, n8n-worker runs them",
                      "defaultValue": "queue"
                    },
                    "GENERIC_TIMEZONE": {
                      "isOptional": true,
                      "description": "Timezone for Schedule triggers, e.g. Europe/Berlin (default UTC)",
                      "defaultValue": ""
                    },
                    "N8N_RUNNERS_MODE": {
                      "description": "Main runs no executions (all offloaded); its built-in JavaScript runner is a fallback only",
                      "defaultValue": "internal"
                    },
                    "EVOLUTION_API_KEY": {
                      "description": "Evolution API global key (apikey header) to paste into an n8n credential (auto-configured)",
                      "defaultValue": "${{Evolution API.AUTHENTICATION_API_KEY}}"
                    },
                    "EVOLUTION_API_URL": {
                      "description": "Private Evolution API URL to paste into HTTP Request nodes or an Evolution credential (auto-configured)",
                      "defaultValue": "http://${{Evolution API.RAILWAY_PRIVATE_DOMAIN}}:${{Evolution API.PORT}}"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "description": "n8n Postgres private host (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "description": "n8n Postgres port (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "description": "n8n Postgres user (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGUSER}}"
                    },
                    "N8N_ENCRYPTION_KEY": {
                      "description": "Encrypts stored credentials; shared with n8n-worker. Never change it after the first deploy",
                      "defaultValue": "{{N8N_ENCRYPTION_KEY}}"
                    },
                    "N8N_OWNER_PASSWORD": {
                      "description": "Owner password (generated). Read it here after deploy. Change it here, not in the n8n UI: the owner is reset from these variables on every start",
                      "defaultValue": "{{N8N_OWNER_PASSWORD}}"
                    },
                    "N8N_EDITOR_BASE_URL": {
                      "description": "Public editor URL (auto-configured)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PRIVATE_WEBHOOK_URL": {
                      "description": "Private webhook base for Evolution API. Use <this><path> as Webhook URL in Evolution's n8n integration (auto-configured)",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:5678/webhook/"
                    },
                    "QUEUE_BULL_REDIS_HOST": {
                      "description": "n8n Redis private host (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISHOST}}"
                    },
                    "QUEUE_BULL_REDIS_PORT": {
                      "description": "n8n Redis port (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISPORT}}"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "description": "n8n Postgres database (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "description": "n8n Postgres password (auto-configured)",
                      "defaultValue": "${{n8n Postgres.PGPASSWORD}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "description": "Send anonymous telemetry to n8n",
                      "defaultValue": "false"
                    },
                    "N8N_INSTANCE_OWNER_EMAIL": {
                      "description": "Email of the n8n owner account, created at deploy time. You log in with it; change it to your own before deploying",
                      "defaultValue": "admin@example.com"
                    },
                    "QUEUE_BULL_REDIS_PASSWORD": {
                      "description": "n8n Redis password (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDIS_PASSWORD}}"
                    },
                    "QUEUE_BULL_REDIS_USERNAME": {
                      "description": "n8n Redis user (auto-configured)",
                      "defaultValue": "${{n8n Redis.REDISUSER}}"
                    },
                    "QUEUE_HEALTH_CHECK_ACTIVE": {
                      "description": "Serve /healthz for the Railway healthcheck",
                      "defaultValue": "true"
                    },
                    "QUEUE_BULL_REDIS_DUALSTACK": {
                      "description": "Resolve the Redis host over IPv4 and IPv6 (Railway private network)",
                      "defaultValue": "true"
                    },
                    "N8N_INSTANCE_OWNER_LAST_NAME": {
                      "isOptional": true,
                      "description": "Owner last name",
                      "defaultValue": "Owner"
                    },
                    "N8N_INSTANCE_OWNER_FIRST_NAME": {
                      "isOptional": true,
                      "description": "Owner first name",
                      "defaultValue": "Instance"
                    },
                    "N8N_REINSTALL_MISSING_PACKAGES": {
                      "description": "Reinstall community nodes installed from the UI after a redeploy (n8n has no volume)",
                      "defaultValue": "true"
                    },
                    "N8N_UNVERIFIED_PACKAGES_ENABLED": {
                      "description": "Allow installing unverified community nodes from the UI (default changes to false in a future n8n version)",
                      "defaultValue": "true"
                    },
                    "N8N_INSTANCE_OWNER_MANAGED_BY_ENV": {
                      "description": "Create and keep the owner account from N8N_INSTANCE_OWNER_EMAIL / N8N_OWNER_PASSWORD on every start. Set false to manage the owner in the UI",
                      "defaultValue": "true"
                    },
                    "OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS": {
                      "description": "Run manual executions on n8n-worker too, so Code nodes always use n8n-runner",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5678": {
                        "port": 5678
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Evolution API",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-11-10T16:15:17.618Z",
  "generator_version": "0.1.0"
}
