Get getaddrinfo ENOTFOUND mysql when running container in another OS

System Information
  • Strapi Version:
  • Operating System: macOS Catalina
  • Database: mysql
  • Node Version: 12.18.3
  • NPM Version: 7.7.4
  • Yarn Version:

Hello people, hope you can help me. I created a project using docker compose as the Documentation points out. I play with the project, create some data, save and push to a repo. I download the repo on another machine (Ubuntu) and when run the project, strapi exits because error Error: getaddrinfo ENOTFOUND mysql so I don’t know if this because different OS or I am missing something in the configuration of docker-compose.yaml
Thanks in advance

You probably are well past solving, but for future reference for those searching and finding this:

In your docker-compose file, make sure that your strapi environment variable DATABASE_HOST matches your mysql service name. In their documentation, they called their mysql service mysql.