Skip to content

vanhieuhp/n8n-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup n8n and postgreSQL

Note: n8n is not support for mysql, so we need to use postgreSQL

  1. Build postgreSQL at first
cd postgres
docker compose up -d
  1. Setup user and database for n8n
  • exec into postgreSQL container
docker exec -it postgres psql -U postgres
  • create user and database for n8n
CREATE USER n8n_user WITH PASSWORD 'password';
CREATE DATABASE n8n_db;
GRANT ALL PRIVILEGES ON DATABASE n8n_db TO n8n_user;
  1. Build n8n container
cd cluster
docker compose up -d
  1. Access to n8n through browser: http://localhost:5678
  2. Enjoy it!

NOTE

  1. n8n admin account
username: hieu.n@glasshouseventure.studio
password: vQ6jJnFy3guO5S
  1. Create user n8n for postgreSQL database
CREATE USER n8n_user WITH PASSWORD 'password';
CREATE DATABASE n8n_db;
GRANT ALL PRIVILEGES ON DATABASE n8n_db TO n8n_user;
  1. Drop postgres user
DROP USER 'n8n_user_demo'@'n8n_db_demo'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published