Skip to content

feat: add Railway deployment — blueprint, frontend Dockerfile, guide - #36

Merged
comwanga merged 1 commit into
mainfrom
feat/escrow-agent-discovery
Aug 8, 2026
Merged

feat: add Railway deployment — blueprint, frontend Dockerfile, guide#36
comwanga merged 1 commit into
mainfrom
feat/escrow-agent-discovery

Conversation

@comwanga

@comwanga comwanga commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a Railway deployment setup so SquadSync can run entirely on one platform (frontend + backend + Postgres) without splitting across Vercel and Render.

Files

File What
railway.toml Blueprint defining 3 services: squadsync-db (Postgres 16), squadsync-api (FastAPI via backend/Dockerfile), squadsync-web (Next.js via frontend/Dockerfile). All env vars templated with Railway secrets.
frontend/Dockerfile Multi-stage standalone Next.js production build — deps → builder (injects NEXT_PUBLIC_API_URL at build time) → runner on port 3000 as non-root user
frontend/next.config.ts Added output: "standalone" (required for the Docker build, silently ignored by Vercel)
RAILWAY.md Full deploy guide — quick start, env reference table, architecture diagram, migration notes, gotchas

How to deploy

  1. Connect the GitHub repo in Railway Dashboard
  2. Railway reads railway.toml → provisions DB + both services
  3. Set 4 required secrets (see RAILWAY.md)
  4. Redeploy web service after NEXT_PUBLIC_API_URL is set

Existing Vercel + Render deployment is unaffected by these changes.

- railway.toml — defines squadsync-db (Postgres 16), squadsync-api (FastAPI),
  squadsync-web (Next.js) services with build configs and environment variables
- frontend/Dockerfile — multi-stage standalone Next.js production build
- frontend/next.config.ts — set output: 'standalone' for Docker deployment
- RAILWAY.md — step-by-step deploy guide, env reference, architecture diagram,
  gotchas
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
squadsync Ready Ready Preview Aug 8, 2026 8:25pm

@comwanga
comwanga marked this pull request as ready for review August 8, 2026 20:27
@comwanga
comwanga merged commit 4d5ba73 into main Aug 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant