前提
https://www.youtube.com/watch?v=Fq1PH0Gwi8I&t=214s
上記動画を参考にdockerでの開発環境を作成しているのですが、
docker-compose upコマンドを実行した際に以下のエラーが出ました。
解決策を教えてください。
初学者なので、何を試せばよいかもわかりません。よろしくお願いいたします。
エラーメッセージ
### 該当のソースコード C:\sumple_app>docker-compose up [+] Running 2/2 - Container sumple_app-db-1 Created 0.0s - Container sumple_app-web-1 Created 0.1s Attaching to sumple_app-db-1, sumple_app-web-1 sumple_app-db-1 | 2022-11-14 07:48:45+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.40-1.el7 started. sumple_app-db-1 | 2022-11-14 07:48:46+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' sumple_app-db-1 | 2022-11-14 07:48:46+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.40-1.el7 started. sumple_app-db-1 | 2022-11-14 07:48:46+00:00 [ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user sumple_app-db-1 | Remove MYSQL_USER="root" and use one of the following to control the root user password: sumple_app-db-1 | - MYSQL_ROOT_PASSWORD sumple_app-db-1 | - MYSQL_ALLOW_EMPTY_PASSWORD sumple_app-db-1 | - MYSQL_RANDOM_ROOT_PASSWORD sumple_app-db-1 exited with code 1 sumple_app-web-1 | Could not find gem 'mysql2 (>= 0.4.4, < 0.6.0)' in any of the gem sources listed in your Gemfile. sumple_app-web-1 | Run `bundle install` to install missing gems. sumple_app-web-1 exited with code 7
試したこと
Gemfileに記載されているRuby及びMySQLのバージョンの記載を変更したりしました。