
Deploy Lago
[Updated Sep'25] Host Latest Version of Lago on Railway.
api
getlago/api:v1.33.1
Just deployed
Redis
railwayapp/redis:8.2
Just deployed
/bitnami
Postgres
railwayapp-templates/postgres-ssl:17
Just deployed
/var/lib/postgresql/data
front
getlago/front:v1.33.1
Just deployed
Deploy and Host Lago on Railway
What is Lago?
Lago is an open-source, API-first metering and usage-based billing platform built for SaaS, API, and AI product teams. It allows you to implement and automate complex billing flows—such as usage-based, seat-based, or hybrid subscriptions—with transparency and flexibility.
About Hosting Lago
Hosting Lago means deploying its API and web dashboard along with critical backend services (PostgreSQL and Redis) to provide secure metering, pricing, invoicing, and analytics. Lago is built for containerized environments and integrates easily with platforms like Railway, handling scaling, secrets, and persistent storage. You may also connect object storage like S3/MinIO for file and invoice management. By self-hosting, you control sensitive billing and data, avoid SaaS lock-in, and customize billing operations to your business model with minimal infrastructure overhead.
Common Use Cases
- Usage-based or seat-based billing for SaaS, AI, and API products
- Real-time metering, revenue analytics, and invoicing for platforms/marketplaces
- Hybrid billing models: prepaid credits, custom pricing, or fixed + variable plans
Dependencies for Lago Hosting
- PostgreSQL (persistent database for billing and customer data)
- Redis (for background jobs and caching)
Deployment Dependencies
- Object storage (Amazon S3, MinIO, or Google Cloud Storage) for storing invoices/files
- Railway persistent storage or volumes for database services
- (Optional) External logging, monitoring, or backups for production deployments
Official Lago Documentation
GitHub Repository
Why Deploy Lago on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it. By deploying Lago on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content