---
title: "Deploy Whatsmiau"
description: "Deploy Whatsmiau on Railway. WhatsApp REST API. One click."
category: "Bots"
url: https://railway.com/deploy/whatsmiau
---

# Deploy Whatsmiau

Deploy Whatsmiau on Railway. WhatsApp REST API. One click.

**[Deploy Whatsmiau on Railway](https://railway.com/template/whatsmiau)**

- **Creator:** RBR Digital
- **Category:** Bots
- **Total deploys:** 25

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Whatsmiau https://whatsmiau.dev/logo.png

- **Image:** impedr029/whatsmiau:v0.5.0
- **Public domain:** Yes

## Documentation

# Deploy and Host WhatsMiau on Railway

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/G92IcM?referralCode=9uHSFr&utm_medium=integration&utm_source=template&utm_campaign=generic)

WhatsMiau is a lightweight WhatsApp REST API built with Go using the Whatsmeow library. Connect a personal WhatsApp account via HTTP endpoints without Meta's Business API approval. Send messages, manage groups, receive webhooks, and automate workflows—all through a simple REST interface. Compatible with Evolution API routes for easy migration.

## About Hosting WhatsMiau

Hosting WhatsMiau requires a PostgreSQL database for persistence (instances and data), Redis for session storage and caching, and a persistent volume for WhatsApp instance authentication data. The API listens on port 8080 and exposes REST endpoints for instance creation, QR code connection, messaging, and webhook configuration. Railway provisions all services and handles networking, SSL, and scaling.

## Common Use Cases

- Chatbots and conversational automation
- Notifications, alerts, and broadcast messaging
- Customer support and helpdesk integration
- Multi-instance WhatsApp management for agencies

## Dependencies for WhatsMiau Hosting

- PostgreSQL (persistence for instances and data)
- Redis (session storage and caching)
- Persistent volume (mount path: `/app/data` for auth data)

### Deployment Dependencies

- [WhatsMiau GitHub](https://github.com/verbeux-ai/whatsmiau)
- [Evolution API Documentation](https://doc.evolution-api.com) (compatible routes)
- [Railway Documentation](https://docs.railway.app)

### Implementation Details

**Environment variables** (use Railway reference syntax when deploying):

| Variable | Value |
|----------|-------|
| `DIALECT_DB` | `postgres` |
| `DB_URL` | `${{Postgres.DATABASE_URL}}` |
| `REDIS_URL` | `${{Redis.REDIS_URL}}` |
| `PORT` | `8080` |
| `API_KEY` | `${{secret(64, "abcdef0123456789")}}` |

**Volume:** Mount `/app/data` for persistent instance data.

**Quick start (local):** `cp .env.example .env` then `docker compose up -d`. API at `http://localhost:8080`.

## Why Deploy WhatsMiau on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying WhatsMiau on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

---

## Template Author

Created and maintained by **Douglas Rubim**.

GitHub: https://github.com/douglasrubims

## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Aug ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Aug ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with WebSocket event streaming

Open this page in a browser: https://railway.com/deploy/whatsmiau
