# n8n

> Workflow automation you host yourself, backed by Postgres.

Workflow automation you host yourself, backed by Postgres.

n8n with its own Postgres. Workflows, credentials and executions live in the database; N8N_ENCRYPTION_KEY protects stored credentials, so keep it safe.

## Deploy

On the canvas, select **+ Create**, then **Template**, then **n8n**. Or run `5050 deploy --template n8n`.

## Services it creates

| Service | Image | Volume | Public domain |
|---|---|---|---|
| Postgres | `postgres:17.10-bookworm` | `/var/lib/postgresql/data` | no |
| n8n | `n8nio/n8n:2.42.4` | `/home/node/.n8n` | yes |

## Inputs

| Input | Required | Default |
|---|---|---|
| `N8N_ENCRYPTION_KEY`: Encrypts the credentials n8n stores. Changing it later makes them unreadable. | yes | generated: `secret(32)` |

The manifest is [templates/n8n/template.yaml](https://github.com/musakkka/5050cloud/blob/main/templates/n8n/template.yaml).

## Next steps

- [Templates reference](https://5050cloud.com/docs/reference/templates)
- [Backups and restore](https://5050cloud.com/docs/guides/backups)
