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

  1. Push your project to GitHub
  2. Create a new project on railway.app
  3. Connect your GitHub repository
  4. Railway detects the Dockerfile and builds automatically
  5. Set environment variables in the Railway dashboard
  6. Deploy

Environment Variables

Set these in Railway Dashboard > Variables:

VariableDescription
NUXT_PUBLIC_SITE_URLYour Railway domain
NUXT_WEBHOOK_URLWebhook destination URL(s)
PORTRailway sets this automatically

Railway auto-assigns a port and domain. Use the generated domain or add a custom one.

Custom Domain

  1. Go to your service Settings > Networking > Custom Domain
  2. Add your domain and configure DNS
  3. Update NUXT_PUBLIC_SITE_URL to match

Further Reading