# =========================================================================== # n8n stack environment # Domain target: https://n8n.ld50.xyz # =========================================================================== # n8n image tag (use 'stable' for production) N8N_VERSION=stable # Host port for n8n main UI/API EXPOSE_N8N_PORT=5678 # Runtime NODE_ENV=production GENERIC_TIMEZONE=America/Chicago N8N_LOG_LEVEL=info # Public URL config N8N_HOST=n8n.ld50.xyz N8N_PROTOCOL=https N8N_PORT=5678 N8N_EDITOR_BASE_URL=https://n8n.ld50.xyz WEBHOOK_URL=https://n8n.ld50.xyz/ # Security: REQUIRED # Use a long random value and keep it identical across main + workers. N8N_ENCRYPTION_KEY=replace-with-a-long-random-string # Queue mode (recommended for production) EXECUTIONS_MODE=queue N8N_WORKER_CONCURRENCY=10 QUEUE_HEALTH_CHECK_ACTIVE=true # PostgreSQL DB_HOST=n8n-db DB_PORT=5432 DB_DATABASE=n8n DB_USERNAME=n8n DB_PASSWORD=change-me-to-a-strong-db-password # Redis QUEUE_BULL_REDIS_HOST=n8n-redis QUEUE_BULL_REDIS_PORT=6379 REDIS_PASSWORD=change-me-to-a-strong-redis-password # Optional hardening / noise reduction N8N_DIAGNOSTICS_ENABLED=false N8N_VERSION_NOTIFICATIONS_ENABLED=false N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true # Optional shared external Docker network (for SWAG) # Keep compose network stanza commented out until needed. NETWORKS_EXTERNAL_NAME=swag