# Railway Deployment Configuration for Core API

[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"

[deploy]
startCommand = "uvicorn app.main:app --host 0.0.0.0 --port $PORT"
healthcheckPath = "/health"
healthcheckTimeout = 100
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10

# Watch patterns for auto-redeploy
watchPatterns = [
    "app/**/*.py",
    "requirements.txt",
    "Dockerfile"
]
