Skip to content
All recipes
Workflow automation

Deploy n8n

Self-hosted automation for API-first workflows that keep their state in PostgreSQL.

Why use it

Connect APIs and automate repetitive work with visual workflows you run yourself.

Build plan

  1. Pin the official n8n image and connect managed PostgreSQL for workflows and credentials.
  2. Generate N8N_ENCRYPTION_KEY, set the public webhook URL and run on port 5678.
  3. Confirm that the workflows do not require durable binary files on the local filesystem.

Resources and values

Resources
1 ServicePostgreSQL
Required values
DB_TYPEDB_POSTGRESDB_*N8N_ENCRYPTION_KEYWEBHOOK_URL
Check before you deploy

Persistent S3 binary storage is an n8n self-hosted Enterprise feature. Community workflows that retain files need a different hosting design.

Ask your coding agent

Check whether my n8n workflows need to retain binary files. If they do, stop and explain the storage requirement. Otherwise deploy n8n Community on aidrop with a pinned official image and managed PostgreSQL. Configure DB_TYPE=postgresdb, the DB_POSTGRESDB_* values, a generated N8N_ENCRYPTION_KEY and WEBHOOK_URL. Run on port 5678, use /healthz as the health path and return the editor URL.

Put n8n online

Connect your coding agent, paste the quickstart and keep the build, runtime and public address in one aidrop Project.

7 days free · No credit card required