Deploy
Railway
Two Railway services from the same repository, one volume, private networking between them. Railway builds from the Dockerfiles.
1. Service
-
New Project → Deploy from GitHub repo, pick your fork of Wavelink.
-
In the new service's Settings: set Root Directory to
service. Railway detectsservice/Dockerfile. -
Variables:
Variable Value MCP_TOKENrandom string GEMINI_API_KEYyour key MCP_HOST::(Railway's private network is IPv6; this listens on both)PUBLIC_URLfill in after step 5 DASHBOARD_USER,DASHBOARD_PASSWORD,TZas you like -
Volumes → Add volume, mount path
/data. -
Settings → Networking → Generate domain (or add your own). Copy it into
PUBLIC_URLashttps://<domain>and redeploy. -
Settings → Deploy: set replicas to 1 and, if offered, turn off overlapping deploys so two instances never hold the WhatsApp session at once.
Your connector URL is https://<service domain>/mcp.
2. Dashboard
-
In the same project, New → GitHub repo, same repository, Root Directory
dashboard. -
Variables:
Variable Value WA_API_URLhttp://${{service.RAILWAY_PRIVATE_DOMAIN}}:3940(use the service's name in the reference)WA_API_TOKENsame as MCP_TOKENAUTH_SECRETrandom string, 16+ characters -
Generate domain. That is where people sign in and scan the QR code.
Notes
- The dashboard talks to the service only over the private network; the service's public domain is needed just for the AI apps' OAuth and MCP calls. If you prefer a single domain, put the dashboard behind your own proxy that forwards the connector paths to the service.
- Logs: the service's Deployments → View logs shows the WhatsApp connection state and the generated admin password path on first start. Read the file with Railway's shell:
cat /data/initial-admin-password.txt. - Volumes are backed up with Railway's volume backups; enable them.