WhatsApp Gateway Multi-Device is a Node.js-based solution that allows you to send and receive WhatsApp messages via a REST API. It's ideal for building chatbots, notification systems, and business automation tools using the multi-device WhatsApp protocol.
services:
whatsapp-gateway:
image: rosyiid1440/wa-gateway-multidevice:latest
container_name: wa-gateway
restart: unless-stopped
ports:
- "3000:3000"
environment:
- WEB_USERNAME=admin
- WEB_PASSWORD=ganti_password_ini
- SESSION_SECRET=ganti_dengan_kunci_rahasia_yang_panjang
- MASTER_API_KEY=kunci-gateway-anda-yang-valid
- API_KEY=super-secret-key-defaul
volumes:
- ./sessions:/usr/src/app/dist/sessions
- ./chat_history:/usr/src/app/dist/chat_history
- ./media_downloads:/usr/src/app/dist/media_downloads
๐ Volumes ensure that your session data, message history, and media files are stored persistently, even if the container is removed or restarted.
POST /send-message โ Send text messagePOST /send-media โ Send media (image, PDF, etc.)GET /sessions โ View active WhatsApp sessionsPOST /logout โ Logout from a sessionPOST /webhook โ Setup webhook for incoming messages| Host Folder | Container Path | Description |
|---|---|---|
./sessions | /usr/src/app/sessions | Stores WhatsApp session data |
./chat_history | /usr/src/app/chat_history | Stores received messages |
./media_downloads | /usr/src/app/media_downloads | Stores downloaded media files |
docker build -t rosyiid1440/wa-gateway-multidevice .
docker run -d -p 3000:3000 \
-v $(pwd)/sessions:/usr/src/app/sessions \
-v $(pwd)/chat_history:/usr/src/app/chat_history \
-v $(pwd)/media_downloads:/usr/src/app/media_downloads \
--name wa-gateway \
--restart unless-stopped \
rosyiid1440/wa-gateway-multidevice
MIT License
โญ Feel free to star this project and support its development!
docker pull rosyiid1440/wa-gateway-multidevice:latest