Railway
Deploy a few trusted containers and databases on one user-owned host
A consolation build is possible, but the paid product's decisive value sits outside a solo rebuild. For Railway, deploy a few trusted containers and databases on one user-owned host. The hard boundary is managed infrastructure, usage billing, database templates, networking, and developer experience, plus infrastructure scale, operations, and reliability.
Build verification: not recorded. How we judge buildability
What you give up
- managed infrastructure, usage billing, database templates, networking, and developer experience
- global edge network
- managed databases
- autoscaling
- DDoS protection, support, and compliance
Why people still pay
People still pay for Railway because hosting products sell an operations team and failure-domain diversity, not merely a deploy button. The recurring cost buys patching, certificates, isolation, secrets, builds, deploys, logs, metrics, backups, capacity, incidents, and security response, not just the visible interface.
Your build guide
The stack, security requirements, and agent rules for a focused replacement.
Before you start
- Linux server
- Docker
- domain and DNS access
- backup destination
- basic systems administration
Use these project rules and optional skill references alongside the prompt. Review each skill before adding it to your agent; the AGENTS.md export includes the same guidance.
Project rule, data: Model forms, field definitions, responses, consent flags, and exports; store source IDs and timestamps for each.
Project rule, behavior: Implement applications, environments, secrets, domains, health checks, and rolling container replacement.
Project rule, recovery: Capture bounded build and runtime logs and expose restart, rollback, and redeploy actions.
Implementation plan
Phase 1, architecture and data
Use Docker Compose, Caddy, PostgreSQL, Redis, and a small Go control plane. Model forms, field definitions, responses, consent flags, and exports; store source IDs and timestamps for each.
Phase 2, implement
Implement applications, environments, secrets, domains, health checks, and rolling container replacement.
Phase 3, implement
Capture bounded build and runtime logs and expose restart, rollback, and redeploy actions.
Phase 4, review and output
Add host metrics, disk alerts, update instructions, disaster recovery, and a prominent single-server warning.
Phase 5, recovery and acceptance
Capture bounded build and runtime logs and expose restart, rollback, and redeploy actions. Verify this invariant with a saved fixture: A failed health check must not replace the last healthy deployment; rollback must recover its exact artifact digest. State the practical limit: managed infrastructure, usage billing, database templates, networking, and developer experience.
Build me a focused application hosting and backend platforms workflow for the personal core of Railway. Requirements: - Use Docker Compose, Caddy, PostgreSQL, Redis, and a small Go control plane. Model forms, field definitions, responses, consent flags, and exports; store source IDs and timestamps for each. - Paid product context: Deploy a few trusted containers and databases on one user-owned host. Build only this DIY scope: Deploy a few trusted containers and databases on one user-owned server, route domains, retain logs, and perform backups. - Implement applications, environments, secrets, domains, health checks, and rolling container replacement. - Capture bounded build and runtime logs and expose restart, rollback, and redeploy actions. - Add host metrics, disk alerts, update instructions, disaster recovery, and a prominent single-server warning. - Use a focused application hosting and backend platforms input, review, and export interface. Required input or access: Linux server; Docker. - Recovery: Capture bounded build and runtime logs and expose restart, rollback, and redeploy actions. - Acceptance: with one labelled sample, show the input, saved intermediate state, and exported result; verify this invariant: A failed health check must not replace the last healthy deployment; rollback must recover its exact artifact digest. - Out of scope: managed infrastructure, usage billing, database templates, networking, and developer experience; global edge network. Keep this a personal, inspectable workflow. - Include a README with setup, a sample input, required keys or permissions, data location, and the supported scope.
$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy AGENTS.md · generated from this app's build plan
prompt copied. want to know what dies next week?
new verdicts + top votes, weekly. free. one-click out.
Alternatives to building your own
all 3 free alternatives to Railway →· no votes, no pay-to-list · just what's real
Railway pricing
| plan | monthly | annual (per mo) | what you get |
|---|---|---|---|
| free | $0/workspace | $0/workspace | First 30 days include $5 trial credit; afterward $1 resource credit/month; 1 project, 3 services/project, 1 vCPU and 0.5 GB RAM/service, 0.5 GB volume, 1 replica, 3-day logs, and 0 custom domains. |
| hobby | $5/workspace | — | $5 monthly minimum including $5 usage; 50 projects, 50 services/project, up to 48 vCPU/48 GB per service, 6 replicas, 5 GB volumes, 3 project members and 7-day logs. |
| pro | $20/workspace | — | $20 monthly minimum including $20 usage; 100 projects, 100 services/project, up to 1,000 vCPU/1 TB per service, 42 replicas, 1 TB volumes, unlimited members and 30-day logs. |
| enterprise | — | — | Custom commitment; up to 2,400 vCPU/2.4 TB per service, 50 replicas, 5 TB volumes and 90-day logs.Contact sales. |
free tierafter a 30-day $5 trial: $1 resource credit/month, 1 project, 3 services/project, 1 vCPU and 0.5 GB RAM/service, 0.5 GB volume, 1 replica, 3-day logs, and no custom domains
billingmonthly minimum-spend plans; no public annual plan
hidden costsUsage above included credit is $10/GB-month RAM, $20/vCPU-month, $0.05/GB egress and $0.15/GB-month volume storage; Object Storage is $0.015/GB-month. Agent tokens pass through at provider cost and use a default spend cap of $5 on Hobby or $20 on Pro.
pricing sources checked 2026-08-14 · pricing source ↗
Questions about Railway
Can you build your own Railway with AI?
A full replacement is not the recommended project. A consolation build is possible, but the paid product's decisive value sits outside a solo rebuild. For Railway, deploy a few trusted containers and databases on one user-owned host. The hard boundary is managed infrastructure, usage billing, database templates, networking, and developer experience, plus infrastructure scale, operations, and reliability.
What does the Railway build prompt cover?
The prompt starts with this scope: Deploy a few trusted containers and databases on one user-owned server, route domains, retain logs, and perform backups. Full-product capabilities excluded from the comparison include: managed infrastructure, usage billing, database templates, networking, and developer experience; global edge network; managed databases. Follow the implementation plan and its prerequisites before expanding the build.
How do I use the prompt, AGENTS.md and agent skills?
Start with the Railway prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.
How long will this Railway project take?
The catalogue estimate is closest consolation build: one sitting for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.
What would I give up by replacing Railway?
managed infrastructure, usage billing, database templates, networking, and developer experience; global edge network; managed databases; autoscaling; DDoS protection, support, and compliance. People still pay for Railway because hosting products sell an operations team and failure-domain diversity, not merely a deploy button. The recurring cost buys patching, certificates, isolation, secrets, builds, deploys, logs, metrics, backups, capacity, incidents, and security response, not just the visible interface.
What can I use instead of building Railway?
Coolify: Apps and databases from Git or Docker on your own server, with TLS, logs, environment variables, and backups. Dokploy: A newer self-hosted PaaS for apps and databases, with previews, TLS, logs, and backups in the same control plane. Dokku: The original tiny Heroku-on-one-box; excellent once you are comfortable treating a server like a pet. Compare all listed options at https://howtovibecodeit.dev/railway/alternatives. Check each option's license, hosting needs and feature limits.