Custom n8n image based on the official n8nio/n8n:latest, with a few extra npm packages installed globally so they're available to n8n's Code node without needing per-workflow installs:
FROM n8nio/n8n:latest
USER root
RUN npm install -g bcryptjs jsonwebtoken google-libphonenumber
USER nodePublished to GHCR, linux/amd64:
ghcr.io/giacomolanzi/n8n-custom:latest
GitHub Actions builds and pushes on every push to main that touches the Dockerfile, plus a weekly scheduled rebuild (Monday 03:00 UTC) to pick up upstream n8n releases, and a manual workflow_dispatch trigger.
Drop-in replacement for n8nio/n8n in any compose file:
services:
n8n:
image: ghcr.io/giacomolanzi/n8n-custom:latest
restart: unless-stopped
environment:
- N8N_HOST=n8n.example.com
- N8N_PROTOCOL=https
- DB_TYPE=postgresdb
# ...same env vars as upstream n8n
volumes:
- n8n_data:/home/node/.n8nPlanBProjectV5 and FunBox (two separate n8n instances). Updates are monitored by Diun on each VPS, which notifies on Discord when a new digest is available — it never auto-updates.