This repository provides a complete Docker-based environment to run N8N with Postgres, Redis, Waha (WhatsApp Gateway), and Ngrok for secure public exposure.
.
βββ docker-compose.yml # Docker services definition
βββ .env # Environment variables (β οΈ do not commit to public repos!)
βββ ngrok.yml # Ngrok tunnel configuration
βββ README.md # This guide
- Postgres β Database for N8N
- Redis β Cache / messaging
- Waha β WhatsApp gateway
- N8N β Workflow automation tool
- Ngrok β Secure tunnel to expose N8N publicly
- Set up your
.env(example):NGROK_TOKEN=YOUR_TOKEN_HERE
- Configure ngrok.yml (only if you change the N8N location/container):
tunnels:
n8n:
proto: http
addr: n8n:5678- Start the containers:
docker compose up -d- Stop containers:
docker compose down- Check logs (ngrok URL):
docker compose logs -fN8N β http://localhost:5678 or verifying the Ngrok container logs/dashboard on https://dashboard.ngrok.com/endpoints
Waha β http://localhost:3000
Postgres β Port 5432
Redis β Port 6379
Ngrok β Displays public URL in logs
docker compose down -v
docker compose up -d --build