n8n
How to Add an External Package to n8n for PostgreSQL Connections in a Code Node workflow
By adding the external pg package to a custom n8n Docker image, you can easily use a Code node to interact with PostgreSQL. Here’s a step-by-step guide to achieve this. Dockerfile The Dockerfile adds the PostgreSQL package (pg) globally to the n8n image. # Use the latest official n8n image