Overview
Railway is a cloud platform that deploys from a GitHub repo or Docker image. Polpo runs as a single service with a persistent volume for state.Deploy from GitHub
- Fork the repo Fork lumea-labs/polpo to your GitHub account.
- Create a new project on Railway Go to railway.com/new and select Deploy from GitHub repo. Pick your fork.
-
Set environment variables
In the service settings, add:
Add any other provider keys you need. Run
polpo setupto configure your model. -
Add a persistent volume
In the service settings, click + New Volume:
- Mount path:
/workspace - Size: 1 GB (adjust as needed)
- Mount path:
-
Configure the start command
Railway auto-detects the Dockerfile. If it doesn’t, set the start command manually:
Railway injects
$PORTautomatically. -
Deploy
Railway builds and deploys. You get a public URL like
https://polpo-production-xxxx.up.railway.app.
Deploy from Docker image
Alternatively, deploy the pre-built image:- Create a new Railway service from Docker Image
- Enter
ghcr.io/lumea-labs/polpo:latest - Set environment variables and volume as above
- Override the start command to use Railway’s
$PORT:
Initialize the workspace
After the first deploy, create the project config:Notes
- Railway’s free tier has limited hours. For persistent orchestration, use a paid plan.
- The persistent volume survives deploys and restarts.
- Railway supports custom domains via the Settings tab.