Railway

Deploy cloud-cost-optimization-hub

Multi-cloud cost observability and optimization dashboard.

Deploy cloud-cost-optimization-hub

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

ServiceImagePortVolume
frontendxiaosong233/cloud-cost-optimization-hub-frontend-railway:latest3000-
backendxiaosong233/cloud-cost-optimization-hub-backend-railway:latest8080-
databasepostgres:15.14-alpine5432/var/lib/postgresql/data

Template Content

More templates in this category

View Template
Matomo Analytics + MariaDB
Privacy-friendly analytics with MariaDB and persistent volumes.

leodev
1
View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

nonzerosum
19
View Template
SubTrackr
Self-hosted Subscription Tracker

amnesia
3