Minimal starter for Truffle Ruby and Rails 6 application with Docker, Postgresql and Redis databases
git clone [email protected]:mc2dx/truffle-rails-starter.git your-project
cd your-project
docker-compose run web rails new . --force --no-deps --database=postgresql
docker-compose build
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db
username: postgres
password:
development:
<<: *default
database: myapp_development
test:
<<: *default
database: myapp_test
production:
<<: *default
database: myapp_production
username: myapp
password: <%= ENV['MYAPP_DATABASE_PASSWORD'] %>
docker-compose run web rake db:create
docker-compose up
http://localhost:8081