// $ docker-compose run web rails new . --api --force --no-deps --database=postgresql
$ docker compose build
$ docker compose run api rails db:create
$ docker compose run api rails db:migrate
$ docker compose up
commit 時にrubocop を起動させる設定
cp pre-commit.sample .git/hooks/pre-commit
chmod a+x .git/hooks/pre-commit