Open the server Apps tab
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.


Open-source metering and billing for usage-based pricing
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the Lago template in Server Compass to deploy the official quick-start Lago billing container on your VPS, then verify the Lago web UI in a browser.
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Use the template picker search to find Lago in the Server Compass template catalog.

Choose the Lago template. Server Compass fills the official quick-start Lago container, frontend web port, and API port.

Confirm the app name and compose services. In this run, the app was named lago-demo and used host port 4080.

Review the generated environment values, confirm the port is available, and click Deploy Now.

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Lago image, starts the container, and verifies the app.

After deployment finishes, return to the Apps tab and confirm the Lago app is marked Running with its application URL available.

Open the application URL in a browser. The Lago web UI confirms the site is reachable.

It deploys Lago using the official quick-start container, exposing the web UI and API ports for first-run evaluation.
The tutorial used host port 4080, which maps to the Lago frontend web service on container port 80.
The tutorial verifies the clean Lago web UI because organization setup, billable metrics, plans, and customer configuration depend on the production server.
No. The deployment guide should live on the Lago template detail page and be linked from the reusable template deployment docs page.
Get your hands dirty: manual Lago deployment guide for developers.
Use your terminal to securely access your server. You'll need your server's IP address.
# Connect via SSH
ssh root@your-vps-ip
# Alternative with key file
ssh -i /path/to/key root@your-vps-ipFirst time? Make sure Docker is installed on your VPS. Run: curl -fsSL https://get.docker.com | sh
Initialize a project folder on your server.
# Create and navigate to project directory
mkdir -p ~/apps/lago
cd ~/apps/lagoUse this Docker Compose configuration for your deployment:
services:
api:
image: getlago/api:latest
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://lago:<your-db-password>@db:5432/lago
- REDIS_URL=redis://redis:6379
- SECRET_KEY_BASE=<your-secret-key>
restart: unless-stopped
depends_on:
- db
- redis
front:
image: getlago/front:latest
ports:
- "80:80"
environment:
- API_URL=http://api:3000
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=lago
- POSTGRES_PASSWORD=<your-db-password>
- POSTGRES_DB=lago
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
postgres_data:
PORTFrontend port(default: 80)API_PORTAPI port(default: 3000)SECRET_KEYSecret keyDB_PASSWORDDB passwordBring up your containers in detached mode.
# Start all services
docker compose up -d
# List running containers
docker compose ps
# Watch the logs
docker compose logs -fAllow the application port through your server's firewall.
# Allow the application port through firewall
sudo ufw allow 80/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:80Why type commands when you can click? Deploy Lago the easy way with Server Compass.
After deploying Lago with Server Compass, complete these steps to finish setup
Create organization
Define billable metrics
Create plans and customers
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting Lago
Simply download Server Compass, connect to your VPS, and select Lago from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
Lago requires a minimum of 1024MB RAM. We recommend a VPS with at least 2048MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Lago backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Lago image will be pulled and deployed with zero downtime.
Lago is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.
Download Server Compass and deploy Lago to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass