Railway

Deploy Evolution API

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

Deploy Evolution API

Just deployed

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host Evolution API on Railway

Deploy on Railway

Evolution API is an open-source WhatsApp REST API built on Baileys. 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.

About Hosting Evolution API

Hosting Evolution API requires a PostgreSQL database for persistence (instances, messages, contacts, chats), Redis for cache and session management, 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 Evolution API Hosting

  • PostgreSQL (persistence for instances, messages, contacts, chats)
  • Redis (cache and session management)
  • Persistent volume (mount path: /evolution/instances for auth data)

Deployment Dependencies

Implementation Details

Environment variables (use Railway reference syntax when deploying):

VariableValue
DATABASE_PROVIDERpostgresql
DATABASE_CONNECTION_URI${{Postgres.DATABASE_URL}}
CACHE_REDIS_URI${{Redis.REDIS_URL}}
CACHE_REDIS_ENABLEDtrue
SERVER_URLhttps://${{RAILWAY_PUBLIC_DOMAIN}}
AUTHENTICATION_API_KEY${{secret(64, "abcdef0123456789")}}

Volume: Mount /evolution/instances for persistent instance data.

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

Why Deploy Evolution API 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 Evolution API 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 Content

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

Agampreet Singh
View Template
Cobalt Tools [Updated Feb ’26]
Cobalt Tools [Feb ’26] (Media Downloader, Converter & Automation) Self Host

shinyduo
View Template
NEW
Whatsmiau
Deploy Whatsmiau on Railway. WhatsApp REST API. One click.

Douglas Rubim