Local n8n instance for developing and testing NERV integrations.
# Start n8n
./start.sh
# Stop n8n
./stop.sh
# Start with tunnel (for webhook testing)
./start-with-tunnel.sh-
Copy and configure environment:
cp .env.example .env # Edit .env with your settings -
Start n8n:
./start.sh
-
Access n8n at http://localhost:5678
-
Create your admin account
-
Start building workflows!
- Database: SQLite (default) - suitable for dev/testing
- Port: 5678
- Network:
nerv-n8n-networkfor Docker container communication - Volumes:
n8n_data: Persistent n8n data and credentials./workflows: Workflow backup directory./backup: General backup directory
For testing webhooks from external services:
./start-with-tunnel.shThe setup includes:
- Dedicated Docker network for NERV services communication
- Environment variables for NERV API endpoints
- Volume mounts for workflow sharing
-
Ensure NERV services are on the same Docker network:
networks: - nerv-n8n-network
-
Use internal Docker hostname:
- From NERV → n8n:
http://n8n:5678 - From n8n → NERV: Configure in workflow nodes
- From NERV → n8n:
For production or higher volume:
- Uncomment PostgreSQL section in
docker-compose.yml - Update
.envwith PostgreSQL settings - Restart services
Workflows and credentials are persisted in Docker volumes. To backup:
docker run --rm -v n8n_data:/data -v $(pwd)/backup:/backup alpine tar czf /backup/n8n-backup-$(date +%Y%m%d).tar.gz -C /data .- Check logs:
docker-compose logs -f - Verify n8n health:
curl http://localhost:5678/healthz - Reset data:
docker volume rm n8n_data(⚠️ deletes all data!)
- Never use tunnel in production
- Keep
.envfile secure and out of version control - Regularly backup your encryption key from
.env - Lost encryption key = lost access to all credentials