This repository contains an example dockerized Ruby on Rails development configuration based on the Ruby on Whales blog post.
See the example folder.
We also provide an interactive generator for Rails apps to quickly setup a dockerized environment for your app. Just run the following command and follow the instructions:
bundle exec rails app:template LOCATION='https://railsbytes.com/script/z5OsoB'
You can also run it via Ruby Bytes (so you can dockerize a Rails app without installing it on your host machine):
rbytes install https://railsbytes.com/script/z5OsoB
The code is available as open source under the terms of the MIT License.