以下のアプリ、および拡張機能がインストールされていることを前提としています。
$ git clone git@github.com:yutonishi/rails-postgres-template.git
$ cd rails-postgres-template
$ docker compose build
$ docker compose run web yarn install
本ディレクトリをVSCodeで開き、「緑のマーク」 > 「Reopen in Container」でRemote Containerに入る。
これで各コンテナが起動する。
# rails db:create db:migrate db:seed
Remote Container内で下記を実行するとRails Serverが起動すると同時に、Webpackのコンパイルが実行される。
# bin/dev
http://0.0.0.0:3000にアクセスできることを確認する。