Simple dev box with docker, the gems are installed locally in vendor/bundle
git clone ...
fig run web bundle install
fig run web bundle exec rails new .
#Answer yes to conflicting file. you may keep the .gitignore as is if you want
. unlcok.sh
set up database.yml file: (change app_ with your app name like myappname_)
default: &default
adapter: postgresql
encoding: unicode
pool: 5
host: db
username: postgres
development:
<<: *default
database: app_development
test:
<<: *default
database: app_test
production:
<<: *default
database: app_production
fig run web bundle exec rails db:create
fig run web bundle exec rails db:migrate
fig run web bundle install
fig up