Self-hosted WhatsApp API Gateway with REST API, webhooks, and dashboard. Based on Open-WA project.
143
Self-hosted WhatsApp API Gateway with REST API, real-time webhooks, and web dashboard.
This Docker image is based on the original Open-WA project by Yudhi Armyndharis and contributors.
All credit for the OpenWA software goes to the original authors. This Docker image is a community contribution to simplify deployment.
# Download the deployment files
wget https://raw.githubusercontent.com/rmyndharis/OpenWA/main/deploy/docker-compose.yml
wget https://raw.githubusercontent.com/rmyndharis/OpenWA/main/deploy/.env.example
# Configure environment
cp .env.example .env
nano .env # Edit with your settings
# Start the stack
docker compose up -d
docker run -d \
--name openwa \
-p 2785:2785 \
-v openwa-data:/app/data \
--env-file .env \
manigo92/openwa:0.4.1
/api/docs| Variable | Description | Default |
|---|---|---|
PORT | API port | 2785 |
BASE_URL | Public API URL | - |
API_MASTER_KEY | API authentication key | - |
DATABASE_TYPE | Database type | postgres |
DATABASE_HOST | Database host | postgres |
DATABASE_PORT | Database port | 5432 |
DATABASE_USERNAME | Database user | openwa |
DATABASE_PASSWORD | Database password | - |
DATABASE_NAME | Database name | openwa |
REDIS_ENABLED | Enable Redis | true |
REDIS_HOST | Redis host | redis |
REDIS_PORT | Redis port | 6379 |
ENGINE_TYPE | WhatsApp engine | whatsapp-web.js |
See .env.example for all available options.
┌─────────────────────────────────────────┐
│ OpenWA Container │
│ │
│ ┌─────────────┐ ┌───────────────┐ │
│ │ Dashboard │ │ REST API │ │
│ │ :2886 │ │ :2785 │ │
│ └─────────────┘ └───────────────┘ │
│ │
│ ┌─────────────────────────────────┐ │
│ │ WhatsApp Engine │ │
│ │ (whatsapp-web.js or baileys) │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘
| Port | Service | Description |
|---|---|---|
2785 | API + Dashboard | Main application port |
| Volume | Path | Description |
|---|---|---|
openwa-data | /app/data | Session data, media, and configuration |
curl -X POST http://localhost:2785/api/sessions/my-bot/messages/send-text \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"chatId": "[email protected]",
"text": "Hello from OpenWA!"
}'
curl -X POST http://localhost:2785/api/sessions/start \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"sessionId": "my-bot",
"accountSid": "my-account"
}'
curl http://localhost:2785/api/sessions/my-bot/qr \
-H "X-API-Key: YOUR_API_KEY"
http://localhost:2785/api/docs when running| Tag | Description |
|---|---|
latest | Latest stable release |
0.4.1 | Specific version |
This Docker image follows the license of the original project: MIT License
© OpenWA Project by Yudhi Armyndharis and contributors
https://www.open-wa.org/https://github.com/rmyndharis/OpenWAContent type
Image
Digest
sha256:28ffa3b72…
Size
523.3 MB
Last updated
27 days ago
docker pull manigo92/openwa