Self-Hosting on Railway
Overview
Section titled “Overview”Sayr is composed of several services that work together. To host it on Railway, you will need to deploy the application containers and provision the required databases.
Required Services
Section titled “Required Services”- PostgreSQL: Primary database.
- Redis: Used for queues and caching.
- S3-compatible Storage: For file uploads (e.g., MinIO, AWS S3, R2).
Application Containers
Section titled “Application Containers”The following Docker images need to be deployed.
ghcr.io/dorasto/sayr-backend: The core API server.ghcr.io/dorasto/sayr-start: The frontend application.ghcr.io/dorasto/sayr-worker: Handles background jobs (like GitHub sync).ghcr.io/dorasto/sayr-traefik: Reverse proxy and SSL termination.
Environment Variables
Section titled “Environment Variables”You will need to configure following environment variables across your services. These will be automatically populated by Railway. Not all of them are required, such as S3 configurations & Doras/GitHub credentials.
Deployment Steps
Section titled “Deployment Steps”coming soon