← ClaudeAtlas

railwaylisted

Deploy applications on Railway platform. Use when deploying containerized apps, setting up databases, configuring private networking, or managing Railway projects. Triggers on Railway, railway.app, deploy container, Railway database.
Makiya1202/ai-agents-skills · ★ 2 · AI & Automation · score 65
Install: claude install-skill Makiya1202/ai-agents-skills
# Railway Deployment Deploy and manage applications on Railway's platform. ## Quick Start ```bash # Install Railway CLI npm i -g @railway/cli # Login railway login # Initialize project railway init # Deploy railway up ``` ## railway.toml Configuration ```toml [build] builder = "nixpacks" buildCommand = "npm run build" [deploy] startCommand = "npm start" healthcheckPath = "/health" healthcheckTimeout = 300 restartPolicyType = "on_failure" restartPolicyMaxRetries = 3 [service] internalPort = 3000 ``` ## Nixpacks Configuration ```toml # nixpacks.toml [phases.setup] nixPkgs = ["nodejs-18_x", "python311"] [phases.install] cmds = ["npm ci"] [phases.build] cmds = ["npm run build"] [start] cmd = "npm start" ``` ## Environment Variables ```bash # Set variable railway variables set DATABASE_URL="postgres://..." # Set from file railway variables set < .env # Link to service railway service railway variables set API_KEY="secret" ``` ## Database Services ### PostgreSQL ```bash # Add PostgreSQL railway add -d postgres # Get connection string railway variables get DATABASE_URL ``` ### Redis ```bash railway add -d redis # Access via REDIS_URL ``` ### MySQL ```bash railway add -d mysql # Access via MYSQL_URL ``` ## Private Networking ```yaml # Services can communicate via internal DNS # Format: ${{service-name}}.railway.internal # Example: API calling database service DATABASE_HOST: ${{postgres.railway.internal}} DATABASE_PORT: 5432 ``` ## Volumes (Persistent Stora