---
title: "Host n8n on a VPS in Brazil: low-latency automation and best practices | StreetHosting"
description: "Self-host n8n on a Brazil VPS: Docker Compose, TLS reverse proxy, workflow backups, secrets and when to use the StreetHosting n8n 1-Click VPS."
url: "https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil"
type: "page"
language: "en-US"
---

VPS · 4 min · Intermediate

Published on May 19, 2026 · Updated on May 20, 2026

# How to host n8n on a VPS in Brazil

Hosting n8n on a VPS in Brazil helps with integrations that depend on local APIs and predictable response times. This guide covers a Docker-based architecture, a TLS proxy, credential protection and a backup strategy so you never lose your workflows.

By [Equipe StreetHosting](https://streethosting.com.br/en/autores#equipe-streethosting) · StreetHosting infrastructure and support team

[Latency and ping](https://streethosting.com.br/en/guides/topics/latency) [Automation and webhooks](https://streethosting.com.br/en/guides/topics/automation) [Containers and Docker](https://streethosting.com.br/en/guides/topics/docker)

Summarize with:

[](https://chat.openai.com/?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "ChatGPT") [](https://claude.ai/new?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Claude") [](https://www.google.com/search?udm=50&aep=11&q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Google AI Mode") [](https://x.com/i/grok?text=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Grok") [](https://www.perplexity.ai/search/new?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Perplexity")

Share:

[](https://x.com/intent/tweet?text=Host%20n8n%20on%20a%20VPS%20in%20Brazil%3A%20low-latency%20automation%20and%20best%20practices&url=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil "Share on X") [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil "Share on Facebook") [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil "Share on LinkedIn") [](https://wa.me/?text=Host%20n8n%20on%20a%20VPS%20in%20Brazil%3A%20low-latency%20automation%20and%20best%20practices%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fvps%2Fhost-n8n-vps-brazil "Share on WhatsApp")

For agents: Copy as Markdown [.md](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil.md)

In this guide 5 sections

* [Why self-host n8n in Brazil](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#por-que-self-host-n8n-no-br)
* [Docker and proxy topology](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#topologia-docker-e-proxy)
* [Secrets, webhooks and LGPD](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#segredos-webhooks-e-lgpd)
* [Workflow and database backups](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#backup-de-workflows-e-db)
* [When to use StreetHosting 1-Click](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#quando-usar-1-click-street)

Quick answer

To host n8n securely on a VPS in Brazil, run Docker on Ubuntu LTS, keep your data on a persistent volume, put a TLS reverse proxy in front and treat credentials as operational secrets. Also set up database backups and workflow exports from day one. If you prefer a more direct path, use a [Ryzen VPS](https://streethosting.com.br/en/vps/ryzen) from StreetHosting.

## Why self-host n8n in Brazil[](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#por-que-self-host-n8n-no-br)

For automations that talk to Brazilian services, hosting close to the APIs reduces latency variation and the number of timeouts at critical hours. This is clear in integrations with ERP systems, payment gateways and internal systems exposed through a VPN.

A quick note on the market: back office automation has grown, and many teams adopt n8n to cut repetitive tasks without depending on a single vendor's integration. For a secure VPS foundation, start with [SSH hardening](https://streethosting.com.br/en/guides/vps/secure-ssh-linux-vps) and [UFW](https://streethosting.com.br/en/guides/vps/ufw-firewall-ubuntu-vps) and [UFW](https://streethosting.com.br/en/guides/vps/ufw-firewall-ubuntu-vps).

## Docker and proxy topology[](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#topologia-docker-e-proxy)

### Docker Compose

Structure the `docker-compose.yml` with host, protocol and timezone variables plus a persistent volume. In production, avoid hardcoding credentials in the file itself and load secrets through a protected environment variable. Install the engine as described in [installing Docker on an Ubuntu VPS](https://streethosting.com.br/en/guides/vps/install-docker-ubuntu-vps).

### TLS proxy

Use Caddy or Nginx to terminate TLS and forward traffic to n8n's internal port. Keep HTTPS mandatory to protect webhook tokens and admin sessions.

| Component         | Role                 | Watch out for                 |
| ----------------- | -------------------- | ----------------------------- |
| Reverse proxy     | TLS and routing      | Automatic certificate renewal |
| n8n container     | Runs the workflows   | Control job concurrency       |
| Persistent volume | Data and credentials | Back up before upgrading      |

## Secrets, webhooks and LGPD[](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#segredos-webhooks-e-lgpd)

A public webhook needs signature validation whenever the provider offers it. Credentials should live in n8n's native vault or an equivalent mechanism. Avoid tokens pasted as plain text inside nodes.

If the workflow processes personal data, record the purpose and keep retention to a minimum. Also review the proxy logs so they do not store sensitive information unnecessarily.

An n8n panel exposed without strong authentication can trigger unwanted executions and lead to financial cost or a data leak.

## Workflow and database backups[](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#backup-de-workflows-e-db)

* Export your critical workflows regularly to a private repository.
* Schedule an automatic dump of the database n8n uses, with a defined retention period.
* Test the restore in a staging environment at least once per cycle.

Keeping the compose file versioned, along with an example variables file, speeds up a rebuild after a disk failure or an instance swap.

## When to use StreetHosting 1-Click[](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#quando-usar-1-click-street)

Small teams save time when they start with a prepared image and the initial configuration already done. Compare your in-house setup time against the operating cost to decide. See [Ryzen VPS](https://streethosting.com.br/en/vps/ryzen) and, for a general-purpose VPS, check [Ryzen VPS](https://streethosting.com.br/en/vps/ryzen).

1. List your critical integrations and how often the workflows run.
2. Test throughput during business hours with a load close to the real scenario.
3. Assign a technical owner and an action plan for webhook failures.
* Valid TLS certificate with renewal being monitored.
* Concurrency limit matched to the plan's CPU and RAM.
* Log rotation enabled to avoid a full disk.
* Upgrade procedure with backup and rollback.

In this guide

* [Why self-host n8n in Brazil](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#por-que-self-host-n8n-no-br)
* [Docker and proxy topology](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#topologia-docker-e-proxy)
* [Secrets, webhooks and LGPD](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#segredos-webhooks-e-lgpd)
* [Workflow and database backups](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#backup-de-workflows-e-db)
* [When to use StreetHosting 1-Click](https://streethosting.com.br/en/guides/vps/host-n8n-vps-brazil#quando-usar-1-click-street)

## Frequently asked questions

Can SQLite handle production?

For small workflows, yes. With high concurrency or a large team, move to managed Postgres or a dedicated container with disciplined snapshots.

Do I need my own domain?

Yes, it is recommended. You get valid TLS, a stable webhook URL and less rework when the VPS IP changes.

Does n8n use a lot of RAM?

It depends on the number of simultaneous executions and the kind of node you use. Workflows with heavy parsing and concurrent external calls push usage up quickly.

Can I run n8n on the same VPS as my Minecraft server?

You can, but it is not the ideal setup for production. Different workloads compete for CPU and memory, which makes performance hard to predict at peak hours.

Next step

See Ryzen VPS

Ryzen 9 9950X VPS in São Paulo with root access, NVMe and gamer Anti-DDoS.

[See Ryzen VPS](https://streethosting.com.br/en/vps/ryzen)

[See VPS plans Root VPS in Brazil with NVMe and Anti-DDoS.](https://streethosting.com.br/en/vps)

## Related guides

[VPS Intermediate How to install Docker on Ubuntu 22.04 or 24.04 on a VPS (straight to the point) A stable Docker install on an Ubuntu VPS depends on the right package source and step by step validation. In this guide you set up the official repository, install Engine and Compose, test the daemon and apply basic security measures before deploying applications. 3 min Read guide](https://streethosting.com.br/en/guides/vps/install-docker-ubuntu-vps) [VPS Beginner UFW on Ubuntu VPS: firewall rules without losing SSH UFW makes the Ubuntu firewall simpler, but one rule in the wrong order locks you out of your VPS. Learn how to enable it without losing SSH, open only what you need, deal with Docker, and get back in through the console if something goes wrong. 10 min Read guide](https://streethosting.com.br/en/guides/vps/ufw-firewall-ubuntu-vps) [VPS Intermediate How to secure SSH on a Linux VPS: keys, passwords, fail2ban SSH is usually the first target on any VPS with a public IP. This guide walks through a practical routine that cuts the risk without complicating your day: an ED25519 key, password-free login, admin access through sudo, blocking of automated attempts and a periodic review of authorized keys. 4 min Read guide](https://streethosting.com.br/en/guides/vps/secure-ssh-linux-vps)

[← Back to the Guide Center](https://streethosting.com.br/en/guides)
