[SOLVED] WARN[0000] The "MYSQL_USER" variable is not set. Defaulting to a blank string

According to the instructions Ways to set environment variables with Compose | Docker Docs I set up a custom variable file at my place

web:
  env_file:
    - web-variables.env

In my case, this file is not detected. It should be assumed that I do not want to use:

It works in the same way as docker run --env-file=FILE .... Why can’t it see my web-variables.env file?

I hope this helps.

@bluenobly is right. If you need even more details, I found three topics where I explained the different ways to pass variables (compose --env-file, .env file, env_file in compose files)