Skip to content

FLCordis/dockern8n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Docker Environment: N8N + Postgres + Redis + Waha + Ngrok

This repository provides a complete Docker-based environment to run N8N with Postgres, Redis, Waha (WhatsApp Gateway), and Ngrok for secure public exposure.

πŸ“‚ Project structure

.
β”œβ”€β”€ docker-compose.yml # Docker services definition
β”œβ”€β”€ .env # Environment variables (⚠️ do not commit to public repos!)
β”œβ”€β”€ ngrok.yml # Ngrok tunnel configuration
└── README.md # This guide

πŸ”§ Included services

  • Postgres β†’ Database for N8N
  • Redis β†’ Cache / messaging
  • Waha β†’ WhatsApp gateway
  • N8N β†’ Workflow automation tool
  • Ngrok β†’ Secure tunnel to expose N8N publicly

▢️ How to use

  1. Set up your .env (example):
    NGROK_TOKEN=YOUR_TOKEN_HERE
  2. Configure ngrok.yml (only if you change the N8N location/container):
tunnels:
  n8n:
    proto: http
    addr: n8n:5678
  1. Start the containers:
docker compose up -d
  1. Stop containers:
docker compose down
  1. Check logs (ngrok URL):
docker compose logs -f

🌍 Access Points

N8N β†’ 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

πŸ“Œ Restart from scratch

docker compose down -v
docker compose up -d --build

About

A docker manifest to create 5 ready to use services.

Topics

Resources

Stars

Watchers

Forks

Contributors