How can I automate the owner account setup for a self-hosted n8n instance?

n8n version: last
Database (default: SQLite):+
**n8n EXECUTIONS_PROCESS setting (default: own, main):**main
**Running n8n via (Docker, npm, n8n cloud, desktop app):**self hosted Docker -Ubuntu server
Operating system: WIndows 11

How can I automate the owner account setup for a self-hosted n8n instance?
After docker compose starts i want to create owner automatically and i want to see log in screen not owner setup

1 Like

Hello @Ivan-goEcommerce,
I think you can do this by making a copy of the ~/.n8n folder from an already-deployed n8n instance that has your account information (user/password/workflows, etc.), Store that folder somewhere, and then when a new n8n instance is automatically created, run a script or workflow that replaces the fresh ~/.n8n folder with the pre-filled one..