Create a new rails app using
-
Rename .env.example with you own values
-
Create your src directory
mkdir src
- Run the following command to generate a new rails app
docker-compose run --rm webapp rails new . -d postgresql
- Replace database with database.yml.example
cp database.yml.example src/config/database.yml
- Create databases
docker-compose run --rm webapp rails db:create
- Run rails server
docker-compose up