promptsdrop
← drops
template· #007 · Jun 11, 2026

Self-Hosted WhatsApp AI Agent Stack

One docker-compose file that runs n8n, Evolution API, Postgres and Redis locally. No Ngrok, no paid tunnels.

n8nevolution apidocker⧉ 21 uses
↓ Download docker-compose.yml
// whatsapp-ai-agent-stack · 1 file
docker-compose.yml1 KB

Run it

01Set your passwords. Change POSTGRES_PASSWORD and AUTHENTICATION_API_KEY before running it anywhere outside your machine.
02Start the stack. Save the file in an empty folder and run the command below.
03Connect WhatsApp. Open localhost:8080/manager, create an instance and scan the QR code.
04Build the agent. Open n8n on localhost:5678 and point the instance webhook to your workflow at http://n8n:5678.
$ docker compose up -d
docker-compose.yml
1version: '3.8'
2
3services:
4
5 postgres:
6 image: postgres:15-alpine
7 container_name: evolution_postgres
8 restart: always
9 environment:
10 POSTGRES_USER: evolution
11 POSTGRES_PASSWORD: evolutionpassword
12 POSTGRES_DB: evolution
13 ports:
14 - "5432:5432"
15 volumes:
16 - postgres_data:/var/lib/postgresql/data
17
18 redis:
19 image: redis:7-alpine
20 container_name: evolution_redis
21 restart: always
22 ports:
23 - "6379:6379"
24

Related drops