This is a Rails application template for an opinionated Docker setup.
- Docker Compose-optimized project
- App, Postgres, Redis, and Selenium services
- Sidekiq worker runs via Foreman to prevent
bin/dev
orProcfile.dev
clashes with gems you might add later
- Binstubs that make working with Docker Compose easy
bin/compose
: Alias fordocker-compose up
bin/run
: Runs a command in theapp
servicebin/credentials
: Opens the encrypted credentials file in Vim
- Additional default gems
- GitHub Action workflow that runs linting, annotations, and test suite
$ rails new my_new_project --template=https://raw.githubusercontent.com/nshki/dockerized-rails/main/dockerized-rails-template.rb --database=postgresql --skip-bundle