---
title: "Deploy n8n Automation on StackBlaze"
description: "Deploy n8n with managed Postgres, Valkey, a worker, and a public HTTPS URL for the editor and webhooks. You own the instance. You pay for compute — not per workflow run."
category: "work, productivity, utilities"
url: https://www.stackblaze.com/templates/n8n
---

# Deploy n8n Automation

Deploy n8n with managed Postgres, Valkey, a worker, and a public HTTPS URL for the editor and webhooks. You own the instance. You pay for compute — not per workflow run.

**[Deploy n8n Automation on StackBlaze](https://dashboard.stackblaze.com/new/template/n8n)**

## This stack

- **Web**: n8n Automation server
- **PostgreSQL**: managed database · TCP:5432
- **Valkey**: managed cache · TCP:6379
- **Email**: platform add-on
- **n8n-worker**: queue worker
- **n8n-searxng**: queue worker

## What you get

- **Visual workflows**: Build automations with nodes, branches, retries, and execution history instead of wiring every integration by hand.
- **App integrations**: Connect SaaS tools, databases, HTTP APIs, webhooks, and internal services with n8n nodes and credentials.
- **Custom logic**: Use code nodes and HTTP requests when a workflow needs a transform, a branch, or an API that has no dedicated node.
- **Owner login**: First boot is a one-time owner setup at your app URL. Turn on Load demo data to start as demo@stackblaze.local / changeme.
- **Managed Postgres**: Workflows, credentials, and executions live in CloudNativePG — not a SQLite file inside the container.
- **Public webhook URL**: WEBHOOK_URL and the editor base URL are set to your https://…stackblaze.app hostname so callbacks reach this instance.

## After you deploy

1. **Open the public URL**: The hostname is on the app page after deploy. First load is owner setup — not a login form.
2. **Create the owner**: Email, password, first name, last name. That account owns the instance until you invite others.
3. **Skip demo data unless you want a head start**: Enable Load demo data at deploy to land in a sample workspace (demo@stackblaze.local / changeme) instead of a blank canvas.

## How it is wired

- **Postgres holds the workspace**: Workflows, credentials, and execution history live in the attached database. Restart the editor and the workspace is still there.
- **Redis workers, on purpose**: Valkey holds the job queue. A companion worker runs executions so a heavy run does not stall the canvas. Scale the worker when the queue backs up.
- **One URL for editor and webhooks**: The public hostname is the editor, the login page, and the webhook base. Attach a custom domain from the dashboard when you want a branded callback.
- **Add CPU when the canvas gets heavy**: Raise RAM and CPU on the editor or the worker from the dashboard. Postgres and Valkey scale on their own.

## Common questions

### How do I sign in after deploy?

Open the public URL. Complete the one-time owner setup. If Load demo data was enabled, sign in as demo@stackblaze.local / changeme. If you get sent back to /setup, the database and the app are out of sync — delete both and redeploy.

### I forgot the owner username or password

Open the n8n app in the dashboard, go to Terminal, pick the web pod (n8n-kuberoapp-web-…, not the placeholder), and run n8n user-management:reset. Restart the app, then create a new owner. Workflows and credentials stay; extra n8n users are removed. StackBlaze Forgot password only resets the dashboard account.

### What can I automate with n8n?

Anything n8n can reach: webhooks, schedules, HTTP APIs, databases, and the node library. This instance is yours — there is no vendor task cap.

### Where are credentials and workflows stored?

In the attached Postgres. N8N_ENCRYPTION_KEY is generated at deploy and shared with the worker. Back up the database if the workspace matters. Valkey is not a backup target.

### Can external services call my webhooks?

Yes. WEBHOOK_URL is your public HTTPS hostname. Point the other system at that URL. Use a custom domain if you want a branded callback.

### Is this the right setup for high-volume automation?

Yes — this is the queue-mode stack. Executions run on the worker. Scale the worker when the queue backs up.

### What does it cost?

You pay for the editor, the worker, Postgres, and Valkey — compute, storage, and bandwidth — not per workflow run. Developer is $10/mo with $10 of included usage; a small instance usually stays in that range.

### Do I need Redis?

This template includes it. Valkey speaks Redis protocol and is the job queue. You do not add Redis yourself.


Source: https://github.com/n8n-io/n8n
