feat(deploy): add Railway deployment configuration and setup instructions

This commit is contained in:
UncleCode
2024-11-16 16:38:13 +08:00
parent 90df6921b7
commit e62c807295
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# railway.toml
[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"
[deploy]
startCommand = "uvicorn main:app --host 0.0.0.0 --port $PORT"
healthcheckPath = "/health"
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 3
[deploy.memory]
soft = 2048 # 2GB min for Playwright
hard = 4096 # 4GB max
[deploy.scaling]
min = 1
max = 1