Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Kenneth Mendoza
November 6874

Free n8n Stack That Actually Ships

I’m a big fan of automation stacks that are boring in the best way: simple, local, cheap, and good enough to ship real things.

This setup hits that sweet spot.

You can run n8n locally with Docker, plug in Ollama for free local models, use Postgres/PGVector for memory + knowledge storage, and then expose the whole thing with ngrok when you need webhooks or chat access from outside your machine.

That’s a serious amount of capability for basically the cost of your laptop being on.

What I liked most is that it doesn’t stop at “look, I got a chatbot working.” It actually closes the loop on the pieces that usually break in real implementations:

  • local model
  • persistent memory
  • document retrieval
  • public URL for integrations

That’s the difference between a demo and something you can build on.

A few practical takeaways I’d steal immediately:

Docker first makes the whole setup way cleaner. Pull n8n, map the right volume, assign the port, and you’ve got a repeatable local environment without weird machine-specific setup drama.

Ollama is the unlock if you want free AI inside n8n. Instead of wiring in another paid model API, you point n8n to your local Ollama instance and pick from open-source models you’ve already pulled. Clean.

One small but important detail: when n8n is running in Docker, localhost won’t behave the way people expect for Ollama. Using the Docker host alias is the move. That little fix saves a lot of “why won’t this connect” time.

Memory is where the build gets real.
Simple memory is fine for testing, but it dies the moment you restart. If I’m building anything client-facing, I want the conversation history in Postgres from day one. That way the agent can actually remember context across sessions and restarts, which is the bare minimum for a usable assistant.

Then it gets more interesting:

You can use the same Postgres stack with PGVector to store a lightweight knowledge base. In the example, files dropped into a Google Drive folder get downloaded, embedded, and added to the vector store automatically. That means your agent isn’t just chatting — it’s answering from your documents.

That’s a pattern I’d use everywhere.

Invoices. SOPs. Sales docs. Client onboarding docs. Internal wikis. Contracts.
Drop file in folder → trigger workflow → parse → embed → available to agent.

That’s the kind of elegant integration I like. No giant platform migration. No “AI transformation” theater. Just a folder becoming a searchable brain.

The Google Drive OAuth part is the only bit that feels mildly annoying, but even that is manageable. Once it’s configured, it’s done.

And then the final piece: ngrok.

This matters because a lot of people build locally and then hit the wall when they want to connect WhatsApp, Telegram, webhooks, or a public chat interface. Exposing n8n on a public URL gives you a bridge from your local stack to real-world triggers.

Also, setting the public webhook URL correctly is one of those tiny implementation details that makes or breaks the experience. Miss that, and things get weird fast.

What I’d say to anyone building with n8n right now:

Don’t wait to “upgrade” before you start.
A local stack like this is already enough to prototype serious agents and internal tools.

You don’t need a paid LLM bill on day one.
You don’t need fancy infra on day one.
You do need a setup that lets you test workflows fast and keep state properly.

This one does that.

I’m always pushing for the simplest version that can still handle real usage, and this is exactly that kind of build.

Local n8n + Ollama + Postgres + PGVector + ngrok is a very legit stack for:

  • internal copilots
  • document Q&A
  • support assistants
  • WhatsApp/Telegram bots
  • memory-aware agents
  • low-cost client prototypes

If I were spinning this up myself, I’d keep the exact same structure and just swap in my own workflows and data sources.

That’s the beauty of it.
Once the foundation is in place, the rest is just wiring.

#automation#docker#selfhosting#aiagents#n8n#ollama#postgres
Like
Dislike

85

20

Add a comment...