Regolith Rails Microservices Platform

Regolith is a Rails microservices platform that generates production-ready Rails API services with Docker orchestration and PostgreSQL foundation. Build distributed systems without boilerplate code.

Rails Microservices Commands

Technologies

Rails 7, PostgreSQL, Docker Compose, service registry, API development, microservices architecture, horizontal scaling, container orchestration

Rails for Distributed Systems

~/regolith_demo
$ gem install regolith
✓ Installation complete
$ regolith new marketplace
✓ Created Regolith app 'marketplace'
→ Next: cd marketplace && regolith generate service <service_name>
$ cd marketplace
$ regolith generate service products
→ Creating service 'products'...
✓ Created service 'products'
$ regolith server
→ products_service running at http://localhost:3001

Enterprise-ready microservices platform

Docker, PostgreSQL, CI/CD—prewired.

Rails API Services

Independent Rails 7 applications with PostgreSQL, optimized for API development and horizontal scaling.

Docker Orchestration

Containerized services with Docker Compose, automatic networking, and production-optimized configurations.

Service Registry

Centralized service configuration with automatic port management and environment synchronization.

PostgreSQL Foundation

Shared production database with per-service schema isolation and connection pooling.

CLI Reference

Core Commands
regolith new
regolith new <app_name>
Create a new Regolith application with PostgreSQL, Docker orchestration, and service registry.
Example: regolith new marketplace
regolith generate service
regolith generate service <service_name>
Generate a complete Rails API service with Docker container, CORS configuration, and automatic port assignment.
Example: regolith generate service products
regolith server
regolith server
Start all services with Docker Compose. Each service scales independently with production PostgreSQL.
Starts all services defined in config/regolith.yml
regolith console
regolith console <service_name>
Open Rails console for a specific service with full Rails environment and database access.
Example: regolith console products
Getting Started Workflow
1. regolith new myapp
2. cd myapp
3. regolith generate service users
4. regolith generate service products
5. regolith server

Rails for Distributed Systems

Regolith automates the entire microservices workflow, generating production-ready Rails services in seconds instead of hours.

$ regolith new marketplace
✓ Created Regolith app 'marketplace'
$ regolith generate service products
✓ Created service 'products'
$ regolith generate service orders
✓ Created service 'orders'
$ regolith server
→ products_service running at http://localhost:3001
→ orders_service running at http://localhost:3002
Rails API Services Independent Rails 7 applications with PostgreSQL, optimized for API development and horizontal scaling.
Docker Orchestration Containerized services with Docker Compose, automatic networking, and production-optimized configurations.
Service Registry Centralized service configuration with automatic port management and environment synchronization.
PostgreSQL Foundation Shared production database with per-service schema isolation and connection pooling.