---
title: "Deploy Evolution API"
description: "Deploy Evolution API on Railway. WhatsApp REST API. One click."
category: "Automation"
url: https://railway.com/deploy/evolution-api-6
---

# Deploy Evolution API

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

**[Deploy Evolution API on Railway](https://railway.com/template/evolution-api-6)**

- **Creator:** myworkspace
- **Category:** Automation

## Template content

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

- **Image:** redis:8.2
- **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"`

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

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

### evolution_api https://evolutionfoundation.com.br/favicon.png

- **Image:** evoapicloud/evolution-api:latest

## Documentation

# Deploy and Host Evolution API 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, and chats.
* **Redis:** Cache and session management.
* **Persistent Volume:** Mount path `/evolution/instances` for auth data.

## Implementation Details

### Environment Variables

| Variable | Value |
| :--- | :--- |
| `DATABASE_PROVIDER` | `postgresql` |
| `DATABASE_CONNECTION_URI` | `${{Postgres.DATABASE_URL}}` |
| `CACHE_REDIS_URI` | `${{Redis.REDIS_URL}}` |
| `CACHE_REDIS_ENABLED` | `true` |
| `SERVER_URL` | `https://${{RAILWAY_PUBLIC_DOMAIN}}` |
| `AUTHENTICATION_API_KEY` | `${{secret(64, "abcdef0123456789ZXCVBNM")}}` |

### Volumes
* **Mount:** `/evolution/instances` for persistent instance data.

### Quick Start (Local)
1. Run `cp .env.example .env`
2. Run `docker compose up -d` 
3. The API will be available at `http://localhost:8080`.

## Deployment Dependencies

* [Evolution API Documentation](https://doc.evolution-api.com/)
* [Evolution API GitHub](https://github.com/EvolutionAPI/evolution-api)
* [Railway Documentation](https://docs.railway.app/)

## 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.

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Build a WhatsApp automation platform with Evolution API, n8n & Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/evolution-api-6
