githubEdit

n8n

Running n8n workflow automation tool in docker-compose with OrbStackarrow-up-right

Refer agentic github repoarrow-up-right for full setup instructions and compose.yml file

Install

Optically install n8n cli

# install CLI (one-time)
pnpm add -g n8n@next
# to update to latest version
pnpm update -g n8n@next  

Start

To start n8n with PostgreSQL simply start docker-compose by executing the following command in the current folder.

[!IMPORTANT] But before you do, copy .env.examplearrow-up-right as .env in the project root directory, then change the default postgres username and password in the .envarrow-up-right file, if you prefer.

# for first time
docker compose --profile first-time-only up
# for next time
docker compose up
# if you want to ssh to n8n container 
docker compose exec -it n8n sh

Access n8n dashboard at:

Access qdrant dashboard at:

[!NOTE] First time when you access, you will see: Set up owner account page. Enter some fake data, then you will be redirected to Dashboard

To Stop

Configuration

The default name of the database, user and password for PostgreSQL can be changed in the .envarrow-up-right file in the current directory.

For Mac users running OLLAMA locally

If you're running Ollama locallyarrow-up-right on your Mac (not in Docker), make sure OLLAMA_HOST environment variable set to host.docker.internal:11434 in the n8n service configuration in compose.yamlarrow-up-right .

Additionally, verify ollama base URL is set to http://host.docker.internal:11434arrow-up-right :

Head to https://n8n.agentic.orb.local/home/credentialsarrow-up-right Click on "Local Ollama service" Change the base URL to http://host.docker.internal:11434arrow-up-right

[!NOTE] If you are using LM Studioarrow-up-right, use OpenAI Model integrationarrow-up-right and use lms url: http://host.docker.internal:1234/v1arrow-up-right URL instead of ollama url: http://host.docker.internal:11434arrow-up-right

[!IMPORTANT] If you are using OpenAi models, also verify OpenAi account credentials are set properly.

Usage

Quick start and usage

n8n cli

use n8n-cliarrow-up-right to manage n8n server metadata

default location of n8n CLI config file: ~/.n8n/config

credentials

workflow

security audit

Reference

Last updated