Rasa x SQL_POOL_SIZE & SQL_MAX_OVERFLOW

Hi, we are running a rasa server in docker containers and use an independent DB as tracker store, but we always got alarmed that rasa takes up too many connections, I know I can set SQL_POOL_SIZE (default: 50) and SQL_MAX_OVERFLOW (default: 100), but none of them seems to be working when using docker-compose, my question is:

  1. What is the correct way to set these two env vars when running in docker-compose?
  2. What is the minimum value for rasa and rasa x services?