---
title: "Deploy Lago (working)"
description: "[2026-11-04] Lago v1.56. BREAKING for old deploys (see README)."
category: "Other"
url: https://railway.com/deploy/JkR0z8
---

# Deploy Lago (working)

[2026-11-04] Lago v1.56. BREAKING for old deploys (see README).

**[Deploy Lago (working) on Railway](https://railway.com/template/JkR0z8)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/JkR0z8/manifest.json

- **Creator:** beuz's Projects
- **Category:** Other
- **Total deploys:** 109

## Template content

### lago-clock

- **Image:** getlago/api:v1.56.0
- **Start command:** `./scripts/start.clock.sh`

### lago-api

- **Image:** getlago/api:v1.56.0
- **Start command:** `./scripts/start.sh`
- **Health check:** /health
- **Public domain:** Yes

### Postgres

- **Image:** getlago/postgres-partman:15.0-alpine

### lago-worker

- **Image:** getlago/api:v1.56.0
- **Start command:** `./scripts/start.worker.sh`

### Redis

- **Image:** redis:8.2.3
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### lago-front

- **Image:** getlago/front:v1.56.0
- **Public domain:** Yes

## Documentation

# Deploy and Host Lago on Railway

Original Lago template made by another user was not working so I made this one.
It will spin a postgres db, a redis db and both the frontend and api images necessary to run lago in the simplest manner.
After deployed, you can access the service through the frontend url (after creating an account).

## About Hosting Lago

This template deploys everything needed to run Lago on Railway.

## Common Use Cases

- Usage-based and subscription billing with metered events
- Invoicing, coupons, prepaid credits and webhooks for your SaaS
- An open source alternative to Stripe Billing / Chargebee

## Dependencies for Lago Hosting

- A Postgres database with the pg_partman extension (getlago/postgres-partman, deployed by this template)
- A Redis instance (deployed by this template)
- lago-api, lago-worker, lago-clock and lago-front services (all deployed by this template)

### Deployment Dependencies

- [Lago documentation](https://docs.getlago.com/)

## 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.

## Update 2026-10-27
- Updated getlago/api and getlago/front from v0.49.1-beta to v1.55.0.
- BREAKING: Lago v1.x requires the pg_partman Postgres extension - the DB service now uses getlago/postgres-partman:15.0-alpine. Existing v0.49 deploys cannot simply swap images: deploy fresh and migrate data, or follow Lago's upgrade path version by version.
- Encryption env vars renamed to their LAGO_ENCRYPTION_* names; LAGO_RSA_PRIVATE_KEY must be a base64-encoded PEM key. The template ships a default - CHANGE IT for production: openssl genrsa 2048 | base64 -w0
- Added lago-worker (Sidekiq) and lago-clock services, required for billing jobs.
- Redis switched from bitnami to redis:8.2.1; DB/Redis moved to private networking.

## Update 2026-11-04
- Bumped Lago images to v1.56.0. The hardened front image now listens on port 8080, the template's front PORT is updated to match; Redis bumped to 8.2.3.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/JkR0z8
