勉強のためにmemo-sampleをRailsで作ってみました
勝手にごめんなさい。。
$ docker-compose up -d
$ docker-compose build
$ docker-compose run web rails new myapp --force --database=mysql --skip-bundle
$ docker-compose run web rake db:create
$ docker-compose run web rake myapp db:create
$ docker-compose run myapp web rake db:create
$ docker-compose run web rake ./myapp db:create
$ docker-compose run web rake db:create
$ docker-compose exec web rails g model Memo content:text
$ docker-compose exec web rake db:migrate
$ docker-compose exec web rails generate controller index
$ docker-compose exec web rails generate controller memo