For teams automating with n8n

Run n8n and your AI agents together in your own cloud

Use Docker Compose and Defang to deploy n8n alongside your agent frameworks, databases, and APIs on AWS or GCP without maintaining Kubernetes.

Docker Compose-native
Built for n8n stacks
BYOC on AWS or GCP
CLI

Deploy the stack from your repo in one command.

defang compose up --provider=aws
Defang launches you to any cloud
Illustration of an n8n workflow orchestrating multiple Defang-hosted AI and infrastructure services.
TLS

HTTPS, secrets, env wiring

Included by default when you deploy

Stack fit

A home for n8n and the services it connects to

n8n is at its best when it orchestrates everything from SaaS tools and internal APIs to AI agents. Defang gives you a single deployment plane where n8n and those services live together in your own cloud account.

Works with existing Docker setupsKeep workflows near agent services
01

Promote existing Docker setups

If you already run n8n with Docker, you are most of the way there. Bring your Compose file, add any supporting services, and let Defang turn it into a secure cloud deployment.

02

Orchestrate managed inference safely

When n8n and your services run in your own AWS or GCP accounts with Defang, workflows can call managed inference such as Bedrock or Vertex AI while traffic stays within your cloud perimeter and under your existing IAM policies.

03

Stay within your cloud perimeter

With BYOC, the n8n editor, its database, and all connected services run inside your AWS or GCP account, using your security posture and network boundaries.

Path to production

How it works

Defang builds on the way n8n is already deployed with Docker and Compose and adds cloud automation for you.

1

Describe your n8n stack in Compose

Define the n8n container, Postgres database, and any supporting services (Redis, proxies, agent APIs) in docker-compose.yml. This becomes the blueprint for all environments.

2

Deploy with the Defang CLI

From your repository, run:

defang compose up --provider=aws

Defang builds images, provisions infrastructure, and exposes the n8n editor via HTTPS, while keeping internal services only accessible inside the stack.

3

Expand as your automation grows

Add new services and agents over time by updating your Compose file. Defang makes it easy to spin up additional environments for testing, staging, or per‑team instances.

FAQ