Railway
Deploy to Railway with Docker.
Overview
Railway supports Dockerfile deployments out of the box. Point it at your repo and it will detect and use the Dockerfile.
Quick Deploy
- Push your project to GitHub
- Create a new project on railway.app
- Connect your GitHub repository
- Railway detects the Dockerfile and builds automatically
- Set environment variables in the Railway dashboard
- Deploy
Environment Variables
Set these in Railway Dashboard > Variables:
| Variable | Description |
|---|---|
NUXT_PUBLIC_SITE_URL | Your Railway domain |
NUXT_WEBHOOK_URL | Webhook destination URL(s) |
PORT | Railway sets this automatically |
Railway auto-assigns a port and domain. Use the generated domain or add a custom one.
Custom Domain
- Go to your service Settings > Networking > Custom Domain
- Add your domain and configure DNS
- Update
NUXT_PUBLIC_SITE_URLto match