---
title: "Deploy Rails 8 + Solid Stack + Docker"
description: "Starter template for Rails 8 with Solid Stack, PostgreSQL, and Docker."
category: "Starters"
url: https://railway.com/deploy/railwayrails8starter
---

# Deploy Rails 8 + Solid Stack + Docker

Starter template for Rails 8 with Solid Stack, PostgreSQL, and Docker.

**[Deploy Rails 8 + Solid Stack + Docker on Railway](https://railway.com/template/railwayrails8starter)**

- **Creator:** ADHD-Coder
- **Category:** Starters
- **Total deploys:** 25

## Template content

### CABLE https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

### PRIMARY https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

### railway-rails-8-template

- **Source:** https://github.com/ADHD-Coder/railway-rails-8-template
- **Public domain:** Yes

### CACHE https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

### QUEUE https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

## Documentation

# Deploy and Host Rails 8 w/ Solid Stack &amp; Docker on Railway

**rails8_starter** is a production-ready Ruby on Rails 8 template built for instant deployment on Railway. It comes pre-configured with Solid Stack (Rails 8 defaults), PostgreSQL, and Docker, all wired to run on Railway’s infrastructure with minimal setup.

## About Hosting 

This template is designed to streamline the process of deploying a modern Rails 8 app to Railway. It uses a Dockerfile (without Thruster) and connects to four separate PostgreSQL databases, one for each part of the Solid Stack (cache, queue, cable, and primary). 

Optional: Devise handles authentication, letter_opener is used in development, and Postmark is configured for outbound email in production. 

A persistent volume is mounted to /rails/storage for Active Storage or can be replaced with S3.

This template also includes Mission Control Jobs at /jobs, giving you real-time visibility into your background jobs powered by Solid Queue. 

## Common Use Cases

- Rapid prototyping and deployment of full-stack Rails 8 apps
- Build and run a side hustle idea on a Railway project (cost-effective and minimal setup)
- Learn how to build modern Rails apps using current best practices

## Dependencies for Hosting

- [Ruby 3.3](https://www.ruby-lang.org/en/)
- [Rails 8.0+](https://rubyonrails.org/)
- [PostgreSQL](https://www.postgresql.org/)
- [Docker](https://www.docker.com/)

### Deployment Dependencies

- [Postmark](https://postmarkapp.com/) account (for production email)
- Your local RAILS_MASTER_KEY

### Implementation Details 

Please see [Rails 8 Template Github Repo README](https://github.com/ADHD-Coder/railway-rails-8-starter) for specific implementation details.

## Why Deploy rails8_starter 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 rails8_starter 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.

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

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