How to create Ruby on Rails 7 and Mysql project with Docker

Sometimes I have to work on multiple pc. It's helpful if project is configured on docker. I was searching a good docker-composer.yml template on github. But most of the case for rails 7 it was not working perfect. Sometimes I am getting a good template which was working perfect for rails 7, but it was configured for Postgreesql. But I need mysql. Sometimes I am getting template which was works perfectly for the old version of rails, not working for the new version.