Starts n8n with PostgreSQL as database.
To start n8n with PostgreSQL simply start docker-compose by executing the following command in the current folder.
IMPORTANT: But before you do that change the default users and passwords in the .env
file!
docker-compose up -d
To stop it execute:
docker-compose stop
To upgrade n8n to latest version
# Pull latest version
docker compose pull
# Stop and remove older version
docker compose down
# Start the container
docker compose up -d
The default name of the database, user and password for PostgreSQL can be changed in the .env
file in the current directory.
Reference: github.com/ready4mars/n8n-render