
Deploy cloud-cost-optimization-hub
Multi-cloud cost observability and optimization dashboard.
Just deployed
Just deployed
database
Just deployed
/var/lib/postgresql/data
Deploy and Host Cloud Cost Optimization Hub on Railway
Ccoh is a multi-cloud cost observability and optimization dashboard.
About Hosting Cloud Cost Optimization Hub on Railway
Railway runs the Next.js dashboard, private Go API, and PostgreSQL database as Docker services. Only the frontend is public; API traffic is proxied over Railway's private network.
Tech Stack
- Next.js 15, TypeScript, and Tailwind CSS frontend
- Go and Gin REST API
- PostgreSQL 15 database
- Docker containers and Railway private networking
Why Deploy Cloud Cost Optimization Hub on Railway
Railway provides one-click Docker deployment, managed public routing, private service discovery, generated secrets, and persistent storage for a compact multi-cloud cost dashboard.
Common Use Cases
Use the hub to explore multi-cloud cost visibility, register cloud accounts, review cost summaries, and evaluate optimization recommendations across AWS, GCP, and Azure.
Deployment Notes
The frontend listens on port 3000 and proxies /api/* to the private backend on port 8080. Register the first account at /register; the upstream project has no default credentials. PostgreSQL data persists at /var/lib/postgresql/data, with PGDATA set to a subdirectory for Railway volume compatibility. The backend waits for PostgreSQL and applies migrations from its image entrypoint. Cloud provider credentials are added in the application after login.
Dependencies for Cloud Cost Optimization Hub on Railway
The public frontend depends on the private backend, and the backend depends on PostgreSQL for accounts, cost records, alerts, and recommendations.
Deployment Dependencies
| Service | Image | Port | Volume |
|---|---|---|---|
| frontend | xiaosong233/cloud-cost-optimization-hub-frontend-railway:latest | 3000 | - |
| backend | xiaosong233/cloud-cost-optimization-hub-backend-railway:latest | 8080 | - |
| database | postgres:15.14-alpine | 5432 | /var/lib/postgresql/data |
Template Content
