molecule-core/railway.toml
Hongming Wang c40c6e8424 fix: railway.toml buildContext must be repo root for workspace-server COPY paths
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 00:29:38 -07:00

51 lines
1.3 KiB
TOML

# Railway deployment configuration for Molecule AI
# Deploy with one click: https://railway.app/new/template
#
# Railway provisions Postgres and Redis as managed services automatically.
# Set the required environment variables in the Railway dashboard after deploy.
#
# Required variables (set in Railway dashboard → Variables):
# SECRETS_ENCRYPTION_KEY — 32-byte random string for AES-256 secret encryption
# Generate: openssl rand -base64 32
# CORS_ORIGINS — comma-separated allowed origins, e.g. https://yourcanvas.up.railway.app
#
# Injected automatically by Railway:
# DATABASE_URL, REDIS_URL, PORT
[build]
builder = "DOCKERFILE"
dockerfilePath = "workspace-server/Dockerfile"
[deploy]
startCommand = "./server"
healthcheckPath = "/health"
healthcheckTimeout = 30
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 5
[[services]]
name = "platform"
[services.build]
builder = "DOCKERFILE"
dockerfilePath = "workspace-server/Dockerfile"
buildContext = "."
[services.deploy]
startCommand = "./server"
healthcheckPath = "/health"
healthcheckTimeout = 30
[[services]]
name = "canvas"
[services.build]
builder = "DOCKERFILE"
dockerfilePath = "canvas/Dockerfile"
buildContext = "canvas"
[services.deploy]
startCommand = "node server.js"
healthcheckPath = "/"
healthcheckTimeout = 30